I need to store different objects in the ArrayList. Objects are similar in nature but different and have different methods.
Circle c = new Circle(); Cube s =
i think you can create a list of objects, and when use someone u cast to the specific type
List obj = new ArrayList(); if (obj.get(i) instanceof Class) { Class objCast = (Class)obj }
Objects DOC