java 7 and java 8 for loop in list with example Example: java loop through list for (E element : list) { . . . }