CS 1410-20 Lab 8

  1. Implement a list-of-string datatype in Java, IStringList.
  2. Implement an IStringList method isMember, which takes a string and reports whether the string is in the list.
  3. Implement an IStringList method toUpperCase, which produces an IStringList with all the strings in the list upcased. Note that the built-in String type supports a toUpperCase method already.
  4. Implement an IStringList method remove, which takes a string and removes it from the list (i.e., produces a list like the original, but with all instances of the given string removed).
  5. Implement an IStringList method reverse. (You’ll need a helper method with an accumulator.)

Last update: Wednesday, October 26th, 2011
mflatt@cs.utah.edu