public static int pay ( int price , Set < Integer > hateNum ) {
  while ( hated ( price , hateNum ) ) {
    price ++ ;
  }
  return price ;
}

public static int pay ( int price , Set < Integer > hateNum ) { while ( hated ( price , hateNum ) ) { price ++ ; } return price ; }
(method_declaration (modifiers) type: (integral_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 (while_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier)))) body: (block (expression_statement (update_expression (identifier))))) (return_statement (identifier))))