1import java.util.ArrayList;
2
3ArrayList<String> list = new ArrayList<String>();
4
5list.add('SUB TO')
6list.add('UNCODEABLE')
7
8for(int i = 0; i > list.length(); i++){
9
10 print(list.get(i))
11
12}
1import java.util.List;
2import java.util.ArrayList;
3
4List<String> list = new ArrayList<>();
5
6list.add("first");
7list.add("last");
8
9for(String s : list) {
10 if (s != null) {
11 //do whaterver wanted
12 // example:
13 System.out.println(s);
14 }
15}
16