public void addTokens ( String [ ] tokens , Node rootNode ) { Node thenode = rootNode ; for ( int i = 0 ; i < tokens . length ; i ++ ) { Node newnode = thenode . addToken ( tokens [ i ] ) ; thenode = newnode ; } }
method adds the token to root