ps6
Class TextUI
java.lang.Object
ps6.TextUI
public class TextUI
- extends Object
This class implements an interactive text-based interface for Husky Maps.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextUI
public TextUI(String databaseName,
List<String> zipcodes)
- Requires:
- databaseName != null && zipcodes != null
- Effects:
- Creates a new TextUI which loads from databaseName
and limits its search to the zipcodes given, unless the list
is empty or null, in which case it searches over all zipcodes.
main
public static void main(String[] args)
interactiveLoop
public void interactiveLoop(BufferedReader input,
PrintStream output)
throws IOException
- TODO:Spec to be written by student.
- Throws:
IOException