using foreach to dispplay in linedlist java code example
Example: iterate trough linked list java
#Enhances For Loop
for (String temp : linkedList) {
System.out.println(temp);
}
#Enhances For Loop
for (String temp : linkedList) {
System.out.println(temp);
}