static String FirstAndLast ( String str ) {
  char [ ] ch = str . toCharArray ( ) ;
  for ( int i = 0 ;
  i < ch . length ;
  i ++ ) {
    int k = i ;
    while ( i < ch . length && ch [ i ] != ' ' ) i ++ ;
    ch [ k ] = ( char ) ( ch [ k ] >= 'a' && ch [ k ] <= 'z' ? ( ( int ) ch [ k ] - 32 ) : ( int ) ch [ k ] ) ;
    ch [ i - 1 ] = ( char ) ( ch [ i - 1 ] >= 'a' && ch [ i - 1 ] <= 'z' ? ( ( int ) ch [ i - 1 ] - 32 ) : ( int ) ch [ i - 1 ] ) ;
  }
  return new String ( ch ) ;
}

static String FirstAndLast ( String str ) { char [ ] ch = str . toCharArray ( ) ; for ( int i = 0 ; i < ch . length ; i ++ ) { int k = i ; while ( i < ch . length && ch [ i ] != ' ▁ ' ) i ++ ; ch [ k ] = ( char ) ( ch [ k ] >= ' a ' && ch [ k ] <= ' z ' ? ( ( int ) ch [ k ] - 32 ) : ( int ) ch [ k ] ) ; ch [ i - 1 ] = ( char ) ( ch [ i - 1 ] >= ' a ' && ch [ i - 1 ] <= ' z ' ? ( ( int ) ch [ i - 1 ] - 32 ) : ( int ) ch [ i - 1 ] ) ; } return new String ( ch ) ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)))) body: (expression_statement (update_expression (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (cast_expression type: (integral_type) value: (parenthesized_expression (ternary_expression condition: (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (parenthesized_expression (binary_expression left: (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier))) right: (decimal_integer_literal))) alternative: (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier)))))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (cast_expression type: (integral_type) value: (parenthesized_expression (ternary_expression condition: (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal)) right: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal))) consequence: (parenthesized_expression (binary_expression left: (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal))) alternative: (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))))))))) (return_statement (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))))