public static boolean isJavaKeyword(String string,int start,int end){
  int length=end - start;
  OUTER:   for (int i=0; i < tokensArray.length; i++) {
    String token=tokensArray[i];
    if (token.length() != length)     continue;
    for (int c=0; c < length; c++) {
      if (string.charAt(c + start) != token.charAt(c))       continue OUTER;
    }
    return true;
  }
  return false;
}

public static boolean isJavaKeyword ( String string , int start , int end ) { int length = end - start ; OUTER : for ( int i = 0 ; i < tokensArray . length ; i ++ ) { String token = tokensArray [ i ] ; if ( token . length ( ) != length ) continue ; for ( int c = 0 ; c < length ; c ++ ) { if ( string . charAt ( c + start ) != token . charAt ( c ) ) continue OUTER ; } return true ; } return false ; }
determines whether the given name is a java keyword
