I need to reverse the string of a user\'s input.
I need it done in the simplest of ways. I was trying to do reverseOrder(UserInput) but it wasn\'t working.
I prefer using Apache's commons-lang for this kind of thing. There are all kinds of goodies, including:
StringUtils.reverse("Hello World!");
yields: !dlroW olleH
!dlroW olleH
StringUtils.reverseDelimited("Hello World!", ' ');
yields: World! Hello
World! Hello