If your homework told you what you could and could not use, what's the point in asking a forum what you should use? We don't know your requirements unless you tell us about them up front.
What...
Type: Posts; User: KevinWorkman
If your homework told you what you could and could not use, what's the point in asking a forum what you should use? We don't know your requirements unless you tell us about them up front.
What...
Okay. Did you read the link I gave you? It links to a very useful function. What happened when you tried it out?
How do you want to separate them? By whitespace?
Recommended reading: String (Java Platform SE 6)