public class Trie { private Node root; public Trie() // Constructor { root = new Node(); root.content = ' '; // Root node contains blank - represents empty string. } public void insert(String s) { Node current = root; if(s.length()==0) // For empty String current.marker=true; for(int i=0;i