Hello,
I am new to java and i was having a hard time figuring out on how to do certain string manipulations. I was asked to read in a text file and reverse the words. So far, I have put all the words in the text file into an arraylist.
For example...
Hello World. ---> must be printed out as --> olleH .dlroW
right now when i print my arraylist i am getting
[ Hello, World.] I was thinking of somehow accessing each word from here and reversing it. But i am stuck at this point. ANy help would
be appreciated.
thanks
I am new to java and i was having a hard time figuring out on how to do certain string manipulations. I was asked to read in a text file and reverse the words. So far, I have put all the words in the text file into an arraylist.
For example...
Hello World. ---> must be printed out as --> olleH .dlroW
right now when i print my arraylist i am getting
[ Hello, World.] I was thinking of somehow accessing each word from here and reversing it. But i am stuck at this point. ANy help would
be appreciated.
thanks
Comment