Tag: hasMoreTokens

StringTokenizer Tokenizing String

March 28, 2011 · 2 min read
After knowing the data structures from **java.util** package, let us discuss about the remaining classes of **java.util** package. The classes include **Date** and **GregorianCalendar** to manipulate dates, **Random** class to generate random numbers and **StringTokenizer** to separate the string into individual words (known as tokens). The other classes less used are **Observer**, **Observable**, **Timer** and **TimerTask** etc. Now let us go through these classes one after another.