Reading in dates for Assignment 11
You will be testing your Datebook class by reading in a number of dates from a simple text file using the Scanner class. The text file is named dates.txt and can be found in the readonly -> files -> assignment11 folder on the class store. In order to do this testing, you should get the DatebookTest class from readonly -> files -> assignment11 folder on the class store and complete the start method to do the following. Create an empty datebook (which is actually done for you in the constructor for DatebookTest). Each date from the file should be added to your datebook. After reading all of the dates from the dates.txt file, print them out. Then delete the 4th date and print the dates out again. Then delete the last date in the datebook and print the dates out again. Finally, delete the first date in the datebook and print the dates out one more time. You will be creating an instance of DatebookTest and then invoking its start method. Record the output console from this interaction in the file interaction11.txt.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home