@@ -0,0 +1,613 @@
+package com.yxy.chukonu.java.jdk18.lambda.scope;%0A%0Aimport com.yxy.chukonu.java.jdk18.func.inf.FuncInterface;%0A%0Apublic class LocalVariableExample %7B%0A%09%0A%09public static String accessVariable(int var)%7B%0A%09%09//final keyword is not mandatory here,%0A%09%09//however, num cannot be changed, otherwise compiling will be failed.%0A%09%09//In other words, num has been added %22final%22 keyword implicitly.%0A%09%09final int num = 1; %0A%09%09FuncInterface%3CInteger, String%3E funcImpl = (from) -%3E String.valueOf(from + num);%0A%09%09return funcImpl.convert(var);     // 3%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09System.out.println(accessVariable(3)) ;%0A%09%7D%0A%0A%7D%0A

add example for JDK 1.8 new feature - Lambda local var access