I have a lot of classes in a package that all extend FooBar
, and I wish to make an ArrayList<FooBar>
variable.
So far, I have just been adding them one by one into the ArrayList
on startup and I hate it, because I often forget to add it to the list.