//javac JavaLambda2.java public class JavaLambda2 { // private static String dbURL; /** * @param args the command line arguments */ public static void main(String[] args) { int x1 = 12; int x2 = 2; IntMultiply mlt1 = (Integer s1)-> s1 * x2; IntMsg mlt2 = (String str1)-> str1 + "Hi There"; System.out.println (x1 + " times "+ " result " + mlt1.n1(x1)); System.out.println ( mlt2.str1("guest ")); } } interface IntMultiply{ public Integer n1(Integer s1); } interface IntMsg{ public String str1(String s1); }