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

Create HelloLambdasLongConsumer.java