Zachary T. Anderson wrote:
If you want to see if the object you are trying to remove was actually in the list and has been removed then check the value returned by remove().
Can you give me an example of the code that would go in a tester class? I think I would call the class along with the remove the method?
Where Student is the class, removeGrade is the method, grades is the ArrayList, and findGrade is the object it looked for and removed.
Zachary T. Anderson wrote:Okay that makes sense. But still confused on how the code would look compared to mine.
So I would put in my tester:
Tony Docherty wrote:Please post the code for your test class so we can see what you are doing
Zachary T. Anderson wrote:So my question is first is my code correct for the lowestGrade and second how can I call this correctly in my tester?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here