"no suitable method found for add()" error
I'm getting that error in the title and I've never encountered it before can someone enlighten me on how to fix it
Here's my first class: http://pastebin.com/rCaQa4Yd
Here's my test class where the error resides: http://pastebin.com/t5L6Ummm
The error is in line 31
Re: "no suitable method found for add()" error
If you want to store a Customer object in the arraylist, you need to declare the array as such.
Rather than
Code:
ArrayList<String> customerList;
try
Code:
ArrayList<Customer> customerList;