@@ -0,0 +1,1236 @@
+package lambdas;%0A%0Aimport java.util.function.Predicate;%0A%0A/**%0A * Created by www.bswen.com on 2017-1-17.%0A *%0A * @author www.bswen.com%0A */%0Apublic class LambdaAndExceptions %7B%0A    public static void main2(String%5B%5D args) %7B%0A        Predicate%3CString%3E notEmpty = (String s)-%3E!s.isEmpty();%0A        System.out.println(checkString(notEmpty,%22test%22));%0A        System.out.println(checkString(notEmpty,%22%22));%0A        //System.out.println(checkString(notEmpty,null));%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Predicate%3CString%3E notEmpty = (String s) -%3E %7B%0A            try %7B%0A                return !isEmpty(s);%0A            %7D catch (Exception e) %7B%0A                e.printStackTrace();%0A            %7D%0A            return false;%0A        %7D;%0A        System.out.println(checkString(notEmpty,%22test%22));%0A        System.out.println(checkString(notEmpty,%22%22));%0A        //System.out.println(checkString(notEmpty,null));%0A    %7D%0A%0A    private static boolean isEmpty(String s) throws Exception %7B%0A        if(s==null) throw new Exception(%22null%22);%0A        return s.isEmpty();%0A    %7D%0A%0A    private static boolean checkString(Predicate%3CString%3E predict,%0A                                      String theRealString) %7B%0A        return predict.test(theRealString);%0A    %7D%0A%7D%0A

add lambda and exception source examples.