CS 1713 Introduction to Computer Science, Spring 2006 Project 2 Comments
This project was graded on the basis of 20 points.
- Format your source code so that no lines are longer than 80 columns.
- The equals method of the Vehicle class should be written
directly, without referring to a compareTo method.
- compareTo only makes sense when any two objects in the class
can be ordered. This is not the case with the Vehicle class.
- The constructor of the Vehicle class
must make a copy of the array and a copy of each tire.
- If x is boolean, replace if(x == true) with if(x)
and replace if(x == false) with if(!x).
- When you replace a tire, do a return, just in case there are 2 tires
with the same serial number.
- Do not use == to compare strings, use equals.
A zip file of a completed project can be found
here.