The code snippet below shows how to iterate through an ArrayList using a for loop.

Java Code:
		ArrayList <String> arrayList = new ArrayList<String>();
		arrayList.add("Honda");
		arrayList.add("Toyota");

		for(String str:arrayList)
			System.out.println(str);