CS 117 Assignment: Backwards

Assigned Wednesday, 1/30/02.
Due Friday, 2/1/02 by 5:00 PM.

Create a class called BackString. Each BackString instance should be able to store a single String. Give Backstring the following methods:

Also create a class called BackStringTester with a single main method that creates an instance of the class BackString, starting it off with the string "greater kudu" (that's "uduk retaerg" backwards, for those of you keeping score). Your main method should then call both methods iterBackwards and recurseBackwards.

You may find the charAt() and length() methods for Strings useful.

Have fun.