Write a method that accepts a String object as an argument and displays its contents backward. For

Question:

Write a method that accepts a String object as an argument and displays its contents backward. For instance, if the string argument is “gravity” the method should display -“ytivarg”. Demonstrate the method in a program that asks the user to input a string and then passes it to the method.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: