private static boolean caselessCompare(char a,char b){
  return Character.toLowerCase(a) == Character.toLowerCase(b);
}

private static boolean caselessCompare ( char a , char b ) { return Character . toLowerCase ( a ) == Character . toLowerCase ( b ) ; }
compares two characters whilst ignoring case .
