static int getInt ( ) throws Exception {
  String str = br . readLine ( ) ;
  int n = 0 ;
  if ( str != null ) n = Integer . parseInt ( str ) ;
  return n ;
}

static int getInt ( ) throws Exception { String str = br . readLine ( ) ; int n = 0 ; if ( str != null ) n = Integer . parseInt ( str ) ; return n ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (return_statement (identifier))))