public static boolean containsIgnoreCase(String str,String query){
  if (str != null && query != null) {
    int limit=str.length() - query.length() + 1;
    for (int i=0; i < limit; i++) {
      if (matchesIgnoreCase(str,query,i)) {
        return true;
      }
    }
  }
  return false;
}

public static boolean containsIgnoreCase ( String str , String query ) { if ( str != null && query != null ) { int limit = str . length ( ) - query . length ( ) + 1 ; for ( int i = 0 ; i < limit ; i ++ ) { if ( matchesIgnoreCase ( str , query , i ) ) { return true ; } } } return false ; }
same as string . contains , but ignores case .
