inline foreach java

Java
names.forEach(name -> System.out.println(name));
Source

Also in Java: