This is some examples using Java 8 lambda functions.
- Basic helloworld with lambda function
- Creating Functional Interfaces
- Using previows interfaces wich were promoted to Functional Interfaces(Ex: Runnable)
- Using default Functional Interfaces of Java8 (Ex:Predicate)
- New funcionalities in some common classes of Java who now use Lambda functions(Ex:Method foreach of Interface List)
javac Example1.java Example2.java Example3.java Example4.java Example5.java
Use the Main method accordingly (Ex: Example1 or Example2, etc)
java Example1