public static boolean func ( String x , String y ) {
  boolean a = false , b = false , c = false ;
  if ( ( x . indexOf ( 'A' ) != - 1 ) || ( y . indexOf ( 'A' ) != - 1 ) ) {
    a = true ;
  }
  if ( ( x . indexOf ( 'B' ) != - 1 ) || ( y . indexOf ( 'B' ) != - 1 ) ) {
    b = true ;
  }
  if ( ( x . indexOf ( 'C' ) != - 1 ) || ( y . indexOf ( 'C' ) != - 1 ) ) {
    c = true ;
  }
  if ( a && b && c ) {
    return true ;
  }
  return false ;
}

public static boolean func ( String x , String y ) { boolean a = false , b = false , c = false ; if ( ( x . indexOf ( ' A ' ) != - 1 ) || ( y . indexOf ( ' A ' ) != - 1 ) ) { a = true ; } if ( ( x . indexOf ( ' B ' ) != - 1 ) || ( y . indexOf ( ' B ' ) != - 1 ) ) { b = true ; } if ( ( x . indexOf ( ' C ' ) != - 1 ) || ( y . indexOf ( ' C ' ) != - 1 ) ) { c = true ; } if ( a && b && c ) { return true ; } 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 (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (false)) declarator: (variable_declarator name: (identifier) value: (false)) declarator: (variable_declarator name: (identifier) value: (false))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (unary_expression operand: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (unary_expression operand: (decimal_integer_literal)))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (true))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (unary_expression operand: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (unary_expression operand: (decimal_integer_literal)))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (true))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (unary_expression operand: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (unary_expression operand: (decimal_integer_literal)))))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (true))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (return_statement (true)))) (return_statement (false))))