I\'m tring to create an arraylist of different class instances. How can I create a list without defining a class type? ()
()
List
If you can't be more specific than Object with your instances, then use:
Object
List employees = new ArrayList();
Otherwise be as specific as you can:
List extends SpecificType> employees = new ArrayList extends SpecificType>();