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

private static void fun ( String a , String b , String c , String res ) { if ( a . equals ( " rock " ) ) { if ( b . equals ( " scissors " ) && c . equals ( " scissors " ) ) { System . out . println ( res ) ; flag = true ; } } if ( a . equals ( " paper " ) ) { if ( b . equals ( " rock " ) && c . equals ( " rock " ) ) { System . out . println ( res ) ; flag = true ; } } if ( a . equals ( " scissors " ) ) { if ( b . equals ( " paper " ) && c . equals ( " paper " ) ) { System . out . println ( res ) ; flag = true ; } } }
(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 (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (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: (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))))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (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: (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))))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (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: (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)))))))))