I am not very comfortable with Strings in Java. I have a pretty knowledgeable background in C, and I learned that it is not the way to approach problems in Java with a "C" mindset.
The problem I am facing is, taking a string that contains a sentence and reversing the words. Example would be, "Hi I am Bob" and changing it to "Bob am I Hi". Then returning the String.
My initial thoughts were to change the string into a character array and then manually doing the work with loops and tedious comparison statements. I quickly realized that there must be a better way but I am not very familiar with strings in Java to know what a more sufficient way would be. Any thoughts/Suggestions would be greatly appreciated.
Thank you.