private static void generateOutput ( String line ) throws IOException {
  System . out . println ( line ) ;
  writer . write ( line + "\n" ) ;
}

private static void generateOutput ( String line ) throws IOException { System . out . println ( line ) ; writer . write ( line + " \n " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) (throws (type_identifier)) body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal)))))))