On Sat, 19 Apr 2008 12:18:54 +0200, Hendrik Maryns wrote:
> System.out.println(guests);
> No need even to call toString, println does that for you.
>
> | public class Guests extends ArrayList <Guest>
>
> Don’t do this. Prefer composition over inheritance (google for this).
That println(guests) did the trick :)
Hmm, I was taking the example from a book, so that's kinda frustrating.
Maybe I misinterpreted it. I haven't had a chance to google it, but
you'd just not create the Guests class which extends ArrayList?
-Thufir


|