|
home—info—exams—lectures—labs—hws
Recipe—Laws—lies—syntax—java.lang docs—java.util docs
For this lab, download an open
a .jar file with
test cases.
(See how to get
.jar files into BlueJ.)
You can use this file as the starting point for today's lab,
or you can use your previous class Date,
but you'll need (to paste in)
a working implementation of isValid,
as well as having PizzaServer and Date
in the same project.
You'll also want to paste in the test cases provided in the .jar file.
Write whichDayToWork,
as discussed in
9am section: There was an error in the test cases you downloaded at 9am; see here for instructions on fixing testWhichDayToWork.
/** Return the day after `this`. (`this` must be a valid date.) * @return the day after `this`. The result will be valid if `this` is valid. */ Date nextDay() { return new Day(1899,12,31); // A dummy stub function. } |
home—info—exams—lectures—labs—hws
Recipe—Laws—lies—syntax—java.lang docs—java.util docs
©2007, Ian Barland, Radford University Last modified 2007.Oct.04 (Thu) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |