This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Originally posted by san ch: i trie dit by using stringtokenizer but messed it up terriblly
What do you mean by this? Does the above program compile? If not, what errors do you get? If it does, what happens when you try to run it? It would help if you show us the output you get and explain how it differs from what you expect.
If you provide details like this, we will be more than happy to help you track down your problems and find solutions to them.