@@ -0,0 +1,581 @@
+import java.util.Arrays;%0Aimport java.util.function.IntConsumer;%0A%0Apublic class HelloLambdasIntConsumer %7B%0A%09public static void main(String... args) %7B%0A%09%09System.out.println(%22Hello Lambdas IntConsumer!%22);%0A%0A%09%09// Simplest%0A%09%09System.out.println(%22---%22);%0A%09%09IntConsumer dc = x -%3E System.out.println(x * x);%0A%09%09dc.accept(2);%0A%0A%09%09// AndThen%0A%09%09System.out.println(%22---%22);%0A%09%09IntConsumer dc2 = b -%3E System.out.println(b * 2);%0A%09%09dc.andThen(dc2).accept(10);%0A%0A%09%09// Stream forEach%0A%09%09System.out.println(%22---%22);%0A%09%09int%5B%5D ints = %7B 2, 3, 4 %7D;%0A%09%09Arrays.stream(ints).forEach(x -%3E System.out.println(x * x));%0A%09%7D%0A%7D%0A

Create HelloLambdasIntConsumer.java