Is it possible to store integer, strings and user-defined class objects in one arraylist like
ArrayList a=new ArrayList();
class Demo {}
Demo d=new Demo();
a.Add(12);
a.Add("Faizal Sardar Khan");
a.Add(d);
If it all it is possible, then how to access the elements stored(how to cast 'em out)? If not, then is there any way out to implement this?