static boolean hasNext ( ) {
  try {
    while ( ! tokenizer . hasMoreTokens ( ) ) {
      tokenizer = new StringTokenizer ( reader . readLine ( ) ) ;
    }
  }
  catch ( Exception e ) {
    return false ;
  }
  return true ;
}

static boolean hasNext ( ) { try { while ( ! tokenizer . hasMoreTokens ( ) ) { tokenizer = new StringTokenizer ( reader . readLine ( ) ) ; } } catch ( Exception e ) { return false ; } return true ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters) body: (block (try_statement body: (block (while_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) body: (block (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (return_statement (false))))) (return_statement (true))))