Name: Anonymous 2007-09-26 1:47 ID:AkvBcXjS
Write a program that will allow a user to input his name. The prompt and input data would look something like this:
Please enter your name. Peter Ustinov
Using a for-loop and the String method, substring(...), produce a printout of the reversal of the name.
For example, the name Peter Ustinov would be:
vonitsu retep
Notice that the printout is in all lower-case. Use the String method, toLowerCase() to accomplish this.
and btw this book can be downloaded here: http://www.bluepelicanjava.com/downloadBook_bpj.htm
Please enter your name. Peter Ustinov
Using a for-loop and the String method, substring(...), produce a printout of the reversal of the name.
For example, the name Peter Ustinov would be:
vonitsu retep
Notice that the printout is in all lower-case. Use the String method, toLowerCase() to accomplish this.
and btw this book can be downloaded here: http://www.bluepelicanjava.com/downloadBook_bpj.htm