Home > Java > Java Programs

Java Programs

November 10th, 2009

1. Backward String

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.

One Java file Named:


Java Programs

Categories: Java Tags: , , , , ,
Comments are closed.
Bear