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