posted 18 years ago
That is because you have allocated an array of three references to ArrayLists, but you haven't instantiated the actual ArrayList objects yet.
Here is the new code. I've taken the liberty of reworking how input[] is indexed in the first set of nested loops.
Cool?
[ June 24, 2005: Message edited by: Ryan McGuire ]