private String getSentenceFromTokens ( final String [ ] tokens ) { final StringBuilder sb = new StringBuilder ( ) ; for ( final String token : tokens ) { sb . append ( token ) . append ( " " ) ; } final String sentence = sb . toString ( ) ; return sentence ; }
It takes an array of tokens and outputs a string with tokens joined by a whitespace .