public boolean equalsChars(String a,int ai,String b,int bi,boolean ignoreCase){
  char ca=a.charAt(ai);
  char cb=b.charAt(bi);
  if (ignoreCase) {
    ca=Character.toUpperCase(ca);
    cb=Character.toUpperCase(cb);
  }
  return ca == cb;
}

public boolean equalsChars ( String a , int ai , String b , int bi , boolean ignoreCase ) { char ca = a . charAt ( ai ) ; char cb = b . charAt ( bi ) ; if ( ignoreCase ) { ca = Character . toUpperCase ( ca ) ; cb = Character . toUpperCase ( cb ) ; } return ca == cb ; }
compare two characters in a string .
