How do I create an ArrayList with integer and string input types? If I create one as:
ArrayList
List sections = new ArrayList
You don't know the type is Integer or String then you no need Generic. Go With old style.
List list= new ArrayList (); list.add(1); list.add("myname"); for(Object o = list){ }