public static int areCornerEqual ( String s ) {
  int n = s . length ( ) ;
  if ( n < 2 ) return - 1 ;
  if ( s . charAt ( 0 ) == s . charAt ( n - 1 ) ) return 1 ;
  else return 0 ;
}

public static int areCornerEqual ( String s ) { int n = s . length ( ) ; if ( n < 2 ) return - 1 ; if ( s . charAt ( 0 ) == s . charAt ( n - 1 ) ) return 1 ; else return 0 ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (return_statement (unary_expression operand: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))) consequence: (return_statement (decimal_integer_literal)) alternative: (return_statement (decimal_integer_literal)))))