CS 117 Assignment: Backwards
Assigned Wednesday, 2/19/03.
Due Friday, 2/26/03 by 8:30 AM.
Create a class called BackString. BackString should have three static
methods:
- a method named "iterBackwards" that prints the string backwards to the console
(that is, using System.out.print) using iteration (that is, a for loop or a while loop)
- a method named "recurseBackwards" that prints the string backwards to the console using
recursion
- a main method to get a string from the user and then call both iterBackwards and recurseBackwards
You may find the charAt(), length(), and substring() methods of the String class useful.
Have fun.