1ArrayList<String> mylist = new ArrayList<String>();
2mylist.add(mystring); //this adds an element to the list.
1List<String> zoom = new ArrayList<>();
2zoom.add("String 1");
3zoom.add("String 2");
4
5for (String z : zoom) {
6 System.err.println(z);
7}