Example #1
0
 /* Find a child node of this node that has the char argument as its
  * data. Return null if no such child node is present in the trie.
  */
 TrieNode getChild(char c) {
   for (TrieNode t : children) {
     if (t.getChar() == c) {
       return t;
     }
   }
   return null;
 }