Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

reversing words in a sentence?

807601May 14 2008 — edited May 19 2008
Ok, I understand how to reverse the whole sentence in a few lines, but how would i go about reversing each word in a sentence by itself? For example I input "hello world" and then it prints out "olleh dlrow". If you can help it would be appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2008
Added on May 14 2008
32 comments
554 views