code: public static int[] getMatchNos(String[] strings, String[] s) {
          int[] nos = new int[s.length];
          for (int i = 0, j = 0; i < strings.length; i++) {
              for (int k = 0; k < s.length; k++) {
                  if (s[k].equals(strings[i])) {
                      nos[j] = i;
                      j++;
                  }
              }
          }
          return nos;
      }
docs: get match string number's
  @param strings label's
  @param s match string
  @return match string number's