public static String correctDates ( String [ ] dates ) {
  if ( dates . length == 0 ) {
    return "" ;
  }
  StringBuilder sb = new StringBuilder ( "" ) ;
  String res = makeDateCorrect ( dates [ dates . length - 1 ] , "2011" ) ;
  if ( res == null ) {
    return "No solution" ;
  }
  sb . append ( res ) ;
  dates [ dates . length - 1 ] = res ;
  ;
}

public static String correctDates ( String [ ] dates ) { if ( dates . length == 0 ) { return " " ; } StringBuilder sb = new StringBuilder ( " " ) ; String res = makeDateCorrect ( dates [ dates . length - 1 ] , "2011" ) ; if ( res == null ) { return " No ▁ solution " ; } sb . append ( res ) ; dates [ dates . length - 1 ] = res ; ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) consequence: (block (return_statement (string_literal)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (block (return_statement (string_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) right: (identifier)))))