Think about how you'd do this in your head, or with a piece of paper and a pencil. Not just for short words, but for really long words that you can't always just switch in your head.
Recommended...
Type: Posts; User: KevinWorkman
Think about how you'd do this in your head, or with a piece of paper and a pencil. Not just for short words, but for really long words that you can't always just switch in your head.
Recommended...
That's the whole point of your assignment, is it not? So we can't just do it for you. Look at the String API for several useful functions.
Not really sure what you mean. What have you tried? What are you stuck?
Might want to check out the Scanner class.