We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello! it is possible to put in an arraylist different types of objects, right?
al.add (new Circle(0,0,10)); al.add (new Rect(0,0,10,10));
How can I figure out which class is stored when I iterate through that array?
for (int i=0; i<al.size(); i++) CLASS? obj = (CLASS?) ai.get(i);