private static void fun ( String a , String b , String c , String ans ) {
  if ( a . equals ( "rock" ) && b . equals ( "scissors" ) && c . equals ( "scissors" ) ) {
    System . out . println ( ans ) ;
    flag = true ;
    return ;
  }
  if ( a . equals ( "scissors" ) && b . equals ( "paper" ) && c . equals ( "paper" ) ) {
    System . out . println ( ans ) ;
    flag = true ;
    return ;
  }
  if ( a . equals ( "paper" ) && b . equals ( "rock" ) && c . equals ( "rock" ) ) {
    System . out . println ( ans ) ;
    flag = true ;
    return ;
  }
}

private static void fun ( String a , String b , String c , String ans ) { if ( a . equals ( " rock " ) && b . equals ( " scissors " ) && c . equals ( " scissors " ) ) { System . out . println ( ans ) ; flag = true ; return ; } if ( a . equals ( " scissors " ) && b . equals ( " paper " ) && c . equals ( " paper " ) ) { System . out . println ( ans ) ; flag = true ; return ; } if ( a . equals ( " paper " ) && b . equals ( " rock " ) && c . equals ( " rock " ) ) { System . out . println ( ans ) ; flag = true ; return ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (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)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (true))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (true))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (true))) (return_statement)))))