I have two ArrayList of types ArrayList<ObjectType1> and ArrayList<ObjectType2>.
Then I have created another ArrayList<Object> as object is super class of every object type.
ArrayList<Object1> obj1 = new ArrayList<Object1>();
ArrayList<Object2> obj2 = new ArrayList<Object2>();
These two object class has its own specific getters and setters method.
ArrayList<Object> obj3 = new ArrayList<Object>();
obj3.add(obj1);
obj3.add(obj2);
Now when I am accessing obj3 I want to fetch obj1 and obj2's getters and setters.??
Can any one please help for a solution..???