2 points · by minborg · 10y ago · 0 comments
No comments yet.
The Way of the Lambda - Elegant and Efficient
In Java 8, you can do items.removeIf(i -> predicate(i)); where you used to do for (Iterator it = items.iterator(); it.hasNext();) { ...
javadeau.lawesson.se