Handling checked exceptions in lambda expressions can be often frustrating. Luckily, there is a type inference rule that we can exploit…
11 CommentsCategory: Java
The tricky thing about working with PriorityQueues is that, ironically, they don’t always behave according to the PriorityQueue semantics.
1 CommentThe peek() method from the Java Stream API is often misunderstood. Let’s try to clarify how it works and when should be used.
Stream<T> peek(Consumer<? super T> action)4 Comments