code: public static int getMatchNo(String[] strings, String s) {
          for (int i = 0; i < strings.length; i++) {
              if (s.equals(strings[i])) {
                  return i;
              }
          }
          return -1;
      }
docs: get match string number
  @param strings strings
  @param s match string
  @return match string number