Can't add elements to an arraylist?

As I said, I would always tell the arraylist its type

(which class the objects in the list come from)

2 Likes