@@ -0,0 +1,354 @@
+interface Lambda%7B%0A%09int func(int n);%0A%7D%0A%0Aclass VariableCapture%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%09Lambda lbd;%0A%09%09int num = 10;%0A%09%09%0A%09%09lbd = (n) -%3E %7B%0A%09%09%09n = n + num;%0A%09%09//%09num++; cannot modify local variables %0A%09%09//%09illegal in lambda enclosure all%0A%09%09//%09%09local variable are effectively final%0A%09%09%09return n;%0A%09%09%7D;%0A%09%09%0A%09%09System.out.println(lbd.func(10));%0A%09%7D%0A%7D%0A

Create variableCapture.java