i know how to add many things into arraylist at once, like:
String [] things = {"eggs ", "pie ", "lasers ", "hat "};
List list1 = new ArrayList();
for (String s: things)
list1.add(s);
but is there a way to add things into arraylist iteratively one by one?