February 2014
Intermediate to advanced
160 pages
4h 59m
English
| | str.chars() |
| | .filter(Character::isDigit); |
We can replace a lambda expression with a method reference if it directly routes the parameter as an argument to a static method. The preceding sample code is equivalent to this:
| | str.chars() |
| | .filter(ch -> Character.isDigit(ch)); |