static int id ( String name ) {
  if ( name . equals ( "Anka" ) ) return 0 ;
  else if ( name . equals ( "Chapay" ) ) return 1 ;
  else if ( name . equals ( "Cleo" ) ) return 2 ;
  else if ( name . equals ( "Troll" ) ) return 3 ;
  else if ( name . equals ( "Dracul" ) ) return 4 ;
  else if ( name . equals ( "Snowy" ) ) return 5 ;
  else if ( name . equals ( "Hexadecimal" ) ) return 6 ;
  return - 1 ;
}

static int id ( String name ) { if ( name . equals ( " Anka " ) ) return 0 ; else if ( name . equals ( " Chapay " ) ) return 1 ; else if ( name . equals ( " Cleo " ) ) return 2 ; else if ( name . equals ( " Troll " ) ) return 3 ; else if ( name . equals ( " Dracul " ) ) return 4 ; else if ( name . equals ( " Snowy " ) ) return 5 ; else if ( name . equals ( " Hexadecimal " ) ) return 6 ; return - 1 ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (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: (return_statement (decimal_integer_literal)) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (return_statement (decimal_integer_literal)) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (return_statement (decimal_integer_literal)) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (return_statement (decimal_integer_literal)) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (return_statement (decimal_integer_literal)) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (return_statement (decimal_integer_literal)) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (return_statement (decimal_integer_literal))))))))) (return_statement (unary_expression operand: (decimal_integer_literal)))))