The java.util.StringTokenizer class allows you to break a string into tokens. It is simple way to break string.
The set of delimiters (the characters that separate tokens) may be specified either at creation time or on a per-token basis.