public static boolean hated ( int price , Set < Integer > hateNum ) {
  if ( price < 10 ) return hateNum . contains ( price ) ;
  else return hateNum . contains ( price % 10 ) || hated ( price / 10 , hateNum ) ;
}

public static boolean hated ( int price , Set < Integer > hateNum ) { if ( price < 10 ) return hateNum . contains ( price ) ; else return hateNum . contains ( price % 10 ) || hated ( price / 10 , hateNum ) ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (generic_type (type_identifier) (type_arguments (type_identifier))) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) alternative: (return_statement (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier))))))))