@@ -0,0 +1,1359 @@
+package net.badowl.nyxz.java8;%0A%0A/**%0A * General syntax: (parameters) -%3E %7B lambda-body %7D %22-%3E%22 is called %22lambda operator%22%0A * %0A * Lambda expressions are anonymous functions - which are like methods but without a class.%0A *%0A * Rules for parameters:%0A * %0A * - if you have one parameter you don't need the brackets (they are optional).%0A * %0A * - if you have no parameters you have to have an empty set of brackets.%0A * %0A * - if you have more than one parameters, they have to be comma separated and you must put the%0A * brackets.%0A * %0A * Rules for lambda-body:%0A * %0A * - if it is single line - no braces needed (they are optional). In case where you don't put the%0A * braces then the line can end without semicolon %22;%22. If you put the braces though you should put%0A * the semicolon.%0A * %0A * - for multi-line body the braces are mandatory. Every statement should be separated by semicolon%0A * %22;%22 as it is in regular method.%0A * %0A * - for single-line body you don't need explicit %22return%22 statement.%0A */%0Apublic class LambdaSyntax %7B%0A%0A    /**%0A     * () -%3E System.out.println(%22Hello%22)%0A     * %0A     * x -%3E x + 10%0A     * %0A     * (int x, int y) -%3E %7B return x + y; %7D%0A     * %0A     * (String x, String y) -%3E x.length() + y.length()%0A     * %0A     * (String x) -%3E %7B%0A     * %0A     * listA.add(x);%0A     * %0A     * listB.remove(x);%0A     * %0A     * return listB.size();%0A     * %0A     * %7D%0A     */%0A%7D%0A

Add notes on LambdaSyntax