@@ -0,0 +1,1823 @@
+import java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport java.util.function.ObjIntConsumer;%0A%0Apublic class HelloLambdasObjIntConsumer %7B%0A%09public static void main(String... args) %7B%0A%09%09System.out.println(%22Hello Lambdas ObjIntConsumer!%22);%0A%0A%09%09List%3CInteger%3E integers = Arrays.asList(2, 3, 4);%0A%0A%09%09Map%3CString, Integer%3E map = new HashMap%3C%3E();%0A%09%09for (Integer integer : integers) %7B%0A%09%09%09map.put(%22val_%22 + integer, integer);%0A%09%09%7D%0A%0A%09%09// Simplest - As Lambda Object%0A%09%09ObjIntConsumer%3CString%3E odc1 = (s, i) -%3E System.out.println(s + %22 %22 + i);%0A%09%09odc1.accept(%22abc%22, 123);%0A%0A%09%09ObjIntConsumer%3CString%3E odc2 = (s, d) -%3E System.out.printf(s, d);%0A%09%09odc2.accept(%22value = %25s%5Cn%22, 123);%0A%0A%09%09// ObjIntConsumer Lambda Object Method Reference Inlined%0A%09%09System.out.println(%22---%22);%0A%09%09map.forEach(odc1::accept);%0A%0A%09%09// ObjIntConsumer Lambda Object As a Parameter to a Separate Method%0A%09%09System.out.println(%22---%22);%0A%09%09ObjIntConsumer%3CInteger%3E odc3 = (s, i) -%3E System.out.println(%22%22 + s + %22 %22 + i);%0A%09%09printAllPairs(integers, odc3);%0A%0A%09%09// ObjIntConsumer Lambda Object as a Referring Method%0A%09%09ObjIntConsumer%3CMap%3CString, Integer%3E%3E objCon = HelloLambdasObjIntConsumer::adder;%0A%09%09System.out.println(%22---%22);%0A%09%09objCon.accept(map, 2);%0A%09%7D%0A%0A%09static final void printAllPairs(final List%3CInteger%3E integers, final ObjIntConsumer%3CInteger%3E printer) %7B%0A%09%09Integer first = null;%0A%09%09Integer previous = null;%0A%09%09for (Integer integer : integers) %7B%0A%09%09%09if (null == first) %7B%0A%09%09%09%09first = integer;%0A%09%09%09%7D else %7B%0A%09%09%09%09printer.accept(previous, integer);%0A%09%09%09%7D%0A%09%09%09previous = integer;%0A%09%09%7D%0A%09%09if (null != previous && null != first) %7B%0A%09%09%09printer.accept(previous, first);%0A%09%09%7D%0A%09%7D%0A%0A%09static final void adder(final Map%3CString, Integer%3E map, final int value) %7B%0A%09%09map.forEach((key, val) -%3E System.out.println(String.format(%22%25d + %25d = %25d%22, val, value, (val + value))));%0A%09%7D%0A%7D%0A

Create HelloLambdasObjIntConsumer.java