static void transpose ( int arr [ ] [ ] ) {
  for ( int i = 0 ;
  i < arr . length ;
  i ++ ) for ( int j = i ;
  j < arr [ 0 ] . length ;
  j ++ ) {
    int temp = arr [ j ] [ i ] ;
    arr [ j ] [ i ] = arr [ i ] [ j ] ;
    arr [ i ] [ j ] = temp ;
  }
}

static void transpose ( int arr [ ] [ ] ) { for ( int i = 0 ; i < arr . length ; i ++ ) for ( int j = i ; j < arr [ 0 ] . length ; j ++ ) { int temp = arr [ j ] [ i ] ; arr [ j ] [ i ] = arr [ i ] [ j ] ; arr [ i ] [ j ] = temp ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions))) body: (block (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: (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) condition: (binary_expression left: (identifier) right: (field_access object: (array_access array: (identifier) index: (decimal_integer_literal)) field: (identifier))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (identifier))))))))