Joanne Neal wrote:
Use String.split() to separate the line into words and then append the contents of the array together starting with the last element, going thru to the first and put a space between each word.
Personally, I'd create a list from the array, then use Collections.reverse()... it's a little more obvious as to what you are doing compared with a decreasing counter in a for loop (which always looks odd to me)