static int [ ] sort ( int a [ ] ) {
  ArrayList < Integer > arr = new ArrayList < > ( ) ;
  for ( int i : a ) {
    arr . add ( i ) ;
  }
  Collections . sort ( arr ) ;
  ;
}

static int [ ] sort ( int a [ ] ) { ArrayList < Integer > arr = new ArrayList < > ( ) ; for ( int i : a ) { arr . add ( i ) ; } Collections . sort ( arr ) ; ; }
(method_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions))) body: (block (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))