CS 1713 Introduction to Computer Science, Fall 2008 Project 2 Comments
- Most people did not follow the directions:
The tester must output enough information so that someone reading the
output can tell what tests were performed and whether they were
successful.
If you output:
true
true
false
true
24
It is not clear what this means without looking at the code.
- Most people did not make a copy of the list for sorting by price.
It is not sufficient to make a new variable like this:
   ArrayList<String> newList = oldList;
You must do something like:
   ArrayList<String> newList = new ArrayList<String>();
   for (int i=0;i<oldList.size();i++)
       oldList.add(newList.get(i));
- addPublication should take parameters such as title and author,
not a Publication.
- Use findPublication in addPublication.
- 3 is not a large enough size of an array to test if it was sorted
correctly.
- You must use correct indentation.
- After you do a checkOut you should print the list so
that you can tell it worked.
- Use equals to compare strings.