stringtokenizer example

String Tokenization Java

Breaking a string into independent words is known as string tokenization. To do the job, Java comes with class StringTokenizer from java.util package. It is so simple to use, just pass the string to the constructor of StringTokenizer. Over, everything is done and StringTokenizer places all the words (known as…