question: @ SuppressWarnings ( "unused" ) public void printTrie ( TrieNode node , char [ ] prefix , int index , String debugPrefix ) { LinkedList < TrieNode > children = node . getChildren ( ) ; LogUtils . log ( this , Log . DEBUG , "%1$s: current Prefix %2$s" , debugPrefix , new String ( prefix ) ) ; LogUtils . log ( this , Log . DEBUG , "%1$s: children size %2$d" , debugPrefix , children . size ( ) ) ; for ( TrieNode child : children ) { LogUtils . log ( this , Log . INFO , "%1$s: Prefix children %2$c : %3$d" , debugPrefix , ( char ) child . getContent ( ) , child . getCount ( ) ) ; } for ( TrieNode child : children ) { char content = ( char ) child . getContent ( ) ; prefix [ index ] = content ; printTrie ( child , prefix , index + 1 , debugPrefix + "-" ) ; } if ( index > 0 ) { prefix [ index - 1 ] = ' ' ; } }
target:  Prints the trie. This method is intended for debugging.