static void insert ( String key ) {
  int length = key . length ( ) ;
  int index ;
  TrieNode pCrawl = root ;
  for ( int level = 0 ;
  level < length ;
  level ++ ) {
    index = key . charAt ( level ) - 'a' ;
    if ( pCrawl . children [ index ] == null ) pCrawl . children [ index ] = new TrieNode ( ) ;
    pCrawl = pCrawl . children [ index ] ;
  }
  pCrawl . isLeaf = true ;
}

static void insert ( String key ) { int length = key . length ( ) ; int index ; TrieNode pCrawl = root ; for ( int level = 0 ; level < length ; level ++ ) { index = key . charAt ( level ) - ' a ' ; if ( pCrawl . children [ index ] == null ) pCrawl . children [ index ] = new TrieNode ( ) ; pCrawl = pCrawl . children [ index ] ; } pCrawl . isLeaf = true ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (identifier))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (character_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier)) right: (null_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier)) right: (object_creation_expression type: (type_identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier)))))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (true)))))