@@ -0,0 +1,616 @@
+import java.util.Arrays;%0Aimport java.util.function.DoubleConsumer;%0A%0Apublic class HelloLambdasDoubleConsumer %7B%0A%09public static void main(String... args) %7B%0A%09%09System.out.println(%22Hello Lambdas DoubleConsumer!%22);%0A%0A%09%09// Simplest%0A%09%09System.out.println(%22---%22);%0A%09%09DoubleConsumer dc = x -%3E System.out.println(x * x);%0A%09%09dc.accept(2.0);%0A%0A%09%09// AndThen%0A%09%09System.out.println(%22---%22);%0A%09%09DoubleConsumer 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%09double%5B%5D doubles = %7B 2.0d, 3.0d, 4.0d %7D;%0A%09%09Arrays.stream(doubles).forEach(x -%3E System.out.println(x * x));%0A%09%7D%0A%7D%0A

Create HelloLambdasDoubleConsumer.java