public static int indexOfThatIgnoresCase(List<String> list,String s){
  for (int i=0; i < list.size(); i++) {
    if (s.equalsIgnoreCase(list.get(i))) {
      return i;
    }
  }
  return -1;
}

public static int indexOfThatIgnoresCase ( List < String > list , String s ) { for ( int i = 0 ; i < list . size ( ) ; i ++ ) { if ( s . equalsIgnoreCase ( list . get ( i ) ) ) { return i ; } } return - 1 ; }
finds the first string that matches the given string with case ignored .
