private static boolean areEqual(int fromIndex,CharSequence left,CharSequence right){
  if (left == right)   return true;
  if ((left == null) || (right == null))   return false;
  int n=left.length();
  if (right.length() != n)   return false;
  for (int i=n; i > fromIndex; ) {
    if (left.charAt(--i) != right.charAt(i))     return false;
  }
  return true;
}

private static boolean areEqual ( int fromIndex , CharSequence left , CharSequence right ) { if ( left == right ) return true ; if ( ( left == null ) || ( right == null ) ) return false ; int n = left . length ( ) ; if ( right . length ( ) != n ) return false ; for ( int i = n ; i > fromIndex ; ) { if ( left . charAt ( -- i ) != right . charAt ( i ) ) return false ; } return true ; }
check for equality of the two characters sequences starting at the specified index
