SyntaxFix
Write A Post
Hire A Developer
Questions
List anyObject = new ArrayList();
or
List<Object> anyObject = new ArrayList<Object>();
now anyObject can hold objects of any type.
anyObject
objects of any type
use instanceof to know what kind of object it is.
what kind of object it is