how to work with iterable in java8 lambda code example Example: inline foreach java names.forEach(name -> System.out.println(name));