public static void main ( String [ ] args ) throws IOException {
  try ( AddCandies instance = new AddCandies ( ) ) {
    instance . solve ( ) ;
  }
}

public static void main ( String [ ] args ) throws IOException { try ( AddCandies instance = new AddCandies ( ) ) { instance . solve ( ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (try_with_resources_statement resources: (resource_specification (resource type: (type_identifier) name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))))