Well, you could use a StringTokenizer in your solution, but it wouldn't give you much. It's like when the marketers of Frosted Sugarbombs cereal say it is part of a complete breakfast, and then show eggs, toast,
fruit, orange juice, etc. It's there, but it's not really adding anything.
On the other hand, a StringBuffer could be very useful.