static boolean beats ( String s , String s2 ) {
  if ( s . equals ( "rock" ) && s2 . equals ( "scissors" ) ) return true ;
  else if ( s . equals ( "scissors" ) && s2 . equals ( "paper" ) ) return true ;
  else if ( s . equals ( "paper" ) && s2 . equals ( "rock" ) ) return true ;
  else return false ;
}

static boolean beats ( String s , String s2 ) { if ( s . equals ( " rock " ) && s2 . equals ( " scissors " ) ) return true ; else if ( s . equals ( " scissors " ) && s2 . equals ( " paper " ) ) return true ; else if ( s . equals ( " paper " ) && s2 . equals ( " rock " ) ) return true ; else return false ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (return_statement (true)) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (return_statement (true)) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (return_statement (true)) alternative: (return_statement (false)))))))