1ArrayList<String> namesList = new ArrayList<String>(Arrays.asList( "alex", "brian", "charles") );
2
3for(String name : namesList)
4{
5 System.out.println(name);
6}
7
1for (int i = 0; i < crunchifyList.size(); i++) {
2 System.out.println(crunchifyList.get(i));
3 }