February 2014
Intermediate to advanced
160 pages
4h 59m
English
| | friends.stream() |
| | .reduce("Steve", (name1, name2) -> |
| | name1.length() >= name2.length() ? name1 : name2); |
Methods can have a mixture of regular classes, primitive types, and functional interfaces as parameters. Any parameter of a method may be a functional interface, and we can send a lambda expression or a method reference as an argument in its place.