February 2014
Intermediate to advanced
160 pages
4h 59m
English
| | friends.forEach((name) -> System.out.println(name)); |
The Java compiler will try to infer the types for parameters if we don’t provide them. Using inferred types is less noisy and requires less effort, but if we specify the type for one parameter, we have to specify it for all parameters in a lambda expression.