Looping over ArrayList in Java

for (String str : someStringArrayList) {
    System.out.println("String: " + str);
}

Tags: