iterate trough linked list java

Java
#Enhances For Loop
for (String temp : linkedList) {
    System.out.println(temp);
}
Source

Also in Java: