public static void main ( String args [ ] ) {
  Node root = null ;
  root = newNode ( 45 ) ;
  root . left = newNode ( 46 ) ;
  root . left . left = newNode ( 18 ) ;
  root . left . left . left = newNode ( 16 ) ;
  root . left . left . right = newNode ( 23 ) ;
  root . left . right = newNode ( 17 ) ;
  root . left . right . left = newNode ( 24 ) ;
  root . left . right . right = newNode ( 21 ) ;
  root . right = newNode ( 15 ) ;
  root . right . left = newNode ( 22 ) ;
  root . right . left . left = newNode ( 37 ) ;
  root . right . left . right = newNode ( 41 ) ;
  root . right . right = newNode ( 19 ) ;
  root . right . right . left = newNode ( 49 ) ;
  root . right . right . right = newNode ( 29 ) ;
  int level = 3 ;
  System . out . println ( maxAtLevel ( root , level ) ) ;
}

public static void main ( String args [ ] ) { Node root = null ; root = newNode ( 45 ) ; root . left = newNode ( 46 ) ; root . left . left = newNode ( 18 ) ; root . left . left . left = newNode ( 16 ) ; root . left . left . right = newNode ( 23 ) ; root . left . right = newNode ( 17 ) ; root . left . right . left = newNode ( 24 ) ; root . left . right . right = newNode ( 21 ) ; root . right = newNode ( 15 ) ; root . right . left = newNode ( 22 ) ; root . right . left . left = newNode ( 37 ) ; root . right . left . right = newNode ( 41 ) ; root . right . right = newNode ( 19 ) ; root . right . right . left = newNode ( 49 ) ; root . right . right . right = newNode ( 29 ) ; int level = 3 ; System . out . println ( maxAtLevel ( root , level ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (null_literal))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))))))