private static boolean checkCharMatrixSymmetry ( char [ ] [ ] matrix ) {
  int N = matrix . length ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    for ( int j = i ;
    j < N ;
    j ++ ) {
      if ( matrix [ i ] [ j ] != matrix [ j ] [ i ] ) {
        return false ;
      }
    }
  }
  return true ;
}

private static boolean checkCharMatrixSymmetry ( char [ ] [ ] matrix ) { int N = matrix . length ; for ( int i = 0 ; i < N ; i ++ ) { for ( int j = i ; j < N ; j ++ ) { if ( matrix [ i ] [ j ] != matrix [ j ] [ i ] ) { return false ; } } } return true ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_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)))) consequence: (block (return_statement (false)))))))) (return_statement (true))))