TrieTree { public void insert(String data) { this.insert(this.root, data); } TrieTree(); void insert(String data); List<String> prefixSearch(String key); List<String> all(); List<String> depth(Node node, List<String> list, char[] chars, int index);  }
@Test public void insert() throws Exception { TrieTree trieTree = new TrieTree(); trieTree.insert("abc"); trieTree.insert("abcd"); }
@Test public void prefixSearch44() throws Exception { TrieTree trieTree = new TrieTree(); trieTree.insert("a"); trieTree.insert("b"); trieTree.insert("c"); trieTree.insert("d"); trieTree.insert("e"); trieTree.insert("f"); trieTree.insert("g"); trieTree.insert("h"); }