In my opinion, your fix wasn't a very good fix, stylistically speaking, but you did at least get the "list" variable initialized.
So...
Maybe we can start with where you are now, and later on,...
Type: Posts; User: Zaphod_b
In my opinion, your fix wasn't a very good fix, stylistically speaking, but you did at least get the "list" variable initialized.
So...
Maybe we can start with where you are now, and later on,...
Your main() program calls the UnsortedArrayList constructor, right? Well, the UnsortedArrayList class is derived from the ArrayList class, right? What is the very first thing that the...
Since it is telling you at run time that the value of the list reference variable is null, then it must be that it was declared somewhere that the compiler knows about it, but was never given a value...