public static void addToTreeMap ( int x ) {
  int freq = 0 ;
  if ( tm . containsKey ( x ) ) freq = tm . get ( x ) ;
  tm . put ( x , freq + 1 ) ;
}

public static void addToTreeMap ( int x ) { int freq = 0 ; if ( tm . containsKey ( x ) ) freq = tm . get ( x ) ; tm . put ( x , freq + 1 ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)))))))