Write a program to traverse (or iterate) ArrayList? code example
Example: java loop through arraylist
ArrayList<String> namesList = new ArrayList<String>(Arrays.asList( "alex", "brian", "charles") );
for(String name : namesList)
{
System.out.println(name);
}