This source code is the initial content shared in the NYJavaSIG HelloJava workshop on Java 8 closures, lambdas and other related features introduced in Java 8.
Attendees attempt to fix the issues in each example to satisfy the ask in comments.
The intention is to learn about basic lambda syntax and other related Java 8 features through a set of examples.
About the workshop
Learn-by-coding the closure-related features in Java 8: Functional Interfaces, Method References, Default Methods, Lambda Expressions, Fluent Actions and Stream handling and obviously tips on using IntelliJ IDEA along the path.
Part 1 (2014-OCT-16) - Extension methods, Functional interfaces, Default methods, diamond problem handling in Java, Method references, Lambda expressions.
Workshop Leaders: Chandra Guntur and Barry Burd
Prerequisites (laptop):
- Load Java JDK 8u20 (or better)
- IDE setup with JDK 8 (IntelliJ preferred)
- 2-3 years experience with Java, especially the Collections API
Part 2 (2015-JUL-22) - Learn-by-coding the closure-related features in Java 8:
- Refresher on Functional Interfaces, Method References, Default Methods, Lambda Expressions, Fluent Actions
- Workshop session focused on Java 8 Stream handling
- Bonus, tips on using IntelliJ IDEA along the way!
Code along in this interactive setting. Preload Java and a decent IDE on your laptop before arriving.
- Java SE 8u45
- IntelliJ 14+ Community/Ultimate Edition (Examples will work with any functional Java IDE).
- IntelliJ Generate.Fluent.Interface plugin
- A zeal to have fun coding.