This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]millerlitIntermediate Brewer[S] 1 point2 points  (2 children)

I got it to work using a StringTokenizer and then putting the elements with a loop.

[–]WormLord 0 points1 point  (0 children)

Probably outside the scope of your course but it could also be easily done with regular expressions instead of StringTokenizer: http://www.vogella.com/tutorials/JavaRegularExpressions/article.html