LinkedList list = new LinkedList(); for(Type i: list){ //each element will be in variable "i" System.out.println(i); }