//Returns all of the words in the trie that begin with the specified prefix rooted at this node. //An array of length 0 is returned if there are no words that begin with the specified prefix. public String[] getWords(String prefix) { Tire n = getNode(prefix); if (n == null) { return(new String[0]); } String[] arr = new String[n.size()]; n.getWords(arr, 0); return(arr); }