public boolean equalsIgnoreCase(String string){
  if (string == this) {
    return true;
  }
  if (string == null || count != string.count) {
    return false;
  }
  int o1=offset, o2=string.offset;
  int end=offset + count;
  char c1, c2;
  char[] target=string.value;
  while (o1 < end) {
    if ((c1=value[o1++]) != (c2=target[o2++]) && Character.toUpperCase(c1) != Character.toUpperCase(c2) && Character.toLowerCase(c1) != Character.toLowerCase(c2)) {
      return false;
    }
  }
  return true;
}

public boolean equalsIgnoreCase ( String string ) { if ( string == this ) { return true ; } if ( string == null || count != string . count ) { return false ; } int o1 = offset , o2 = string . offset ; int end = offset + count ; char c1 , c2 ; char [ ] target = string . value ; while ( o1 < end ) { if ( ( c1 = value [ o1 ++ ] ) != ( c2 = target [ o2 ++ ] ) && Character . toUpperCase ( c1 ) != Character . toUpperCase ( c2 ) && Character . toLowerCase ( c1 ) != Character . toLowerCase ( c2 ) ) { return false ; } } return true ; }
compares the specified string to this string ignoring the case of the characters and answer if they are equal .
