Reverse String
In a java program, write a method called reverseString() that accepts a String parameter and returns a String. This method should reverse the string and return the result.
In the main method, you should call the method with a user inputted String being passed into reverseString().
- Input
- A String.
- Sample
- programming
- Output
- The String in reverse.
- Sample
- gnimmargorp