Want to convert following for loop from Java 7 to Java 8 (lambda).
for (Employee e : list) {
session.evict(e);
}
Here, session is Hibernate Session. My intention here is to change the above mentioned working java 7 code to Java 8 with feature of lambda or method reference.