getJiaZiIndex static method

int getJiaZiIndex(
  1. String ganZhi
)

Implementation

static int getJiaZiIndex(String ganZhi) {
  for (int i = 0, j = JIA_ZI.length; i < j; i++) {
    if (JIA_ZI[i] == ganZhi) {
      return i;
    }
  }
  return -1;
}