it is only printing the amount and I want it to print the date and vendor like it is in the toString method of the purchase class
–
trsMar 30 '11 at 17:32

It sounds like you have an old version of your Purchase class running. Try to re-compile it. If this doesn't work, place a break point on the first line of the toString() and then debug it.
–
Peter LawreyMar 30 '11 at 17:47

I need more information. Post the code on your Purchase class so i can see the types of each variable. Ill see what i can do.
–
sfrjMar 30 '11 at 17:54

@trs: Are you sure that purchases is a List<Purchase> and not a List<Double> or similar?
–
Paŭlo EbermannMar 30 '11 at 20:44

I cannot say, bu if i dont see the code where that variable is declared i cannot know what it is. Also i suppose that the overriding he did was done in the class Purchase. I need to see the class declaration and the rest of the code to know what are we dealing with.
–
sfrjMar 31 '11 at 7:05