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.
new StringBuilder(str).reverse().toString()
java.util.Collections.reverseOrder is for sorting in reverse of normal order.
java.util.Collections.reverseOrder