February 2014
Intermediate to advanced
160 pages
4h 59m
English
| | friends.forEach((final String name) -> System.out.println(name)); |
The Java compiler can infer the type of lambda expression based on the context. In some situations where the context is not adequate for it to infer or we want better clarity, we can specify the type in front of the parameter names.