top of page
Dave Schick Consulting

Search


Java 8 - ArrayList removeIf
Java 8 added a new operation to the ArrayList class that will remove all elements from the list that match the given predicate supplied....
schick09
Aug 13, 20241 min read
Â
Â
Â


Java 8 - Map replaceAll and compute
Java 8 introduced several improvements to collections. We are going to discuss two of them today - the Map class replaceAll and compute...
schick09
Aug 12, 20241 min read
Â
Â
Â


Java 8 Stream.flatMap
Java 8’s Stream.flatMap() is used in cases where you have a ‘Stream of Streams’ and you want to return a single Stream. It’s all about...
schick09
Aug 2, 20242 min read
Â
Â
Â


Java 8 Date Time API
Working with dates and times has never been particularly intuitive in Java - and usually the source of more than a few loud expletives. ...
schick09
Jun 24, 20242 min read
Â
Â
Â


Java 8 Stream - filter and map Example
We've talked about using java.util.stream.forEach and java.util.stream.anyMatch in prior posts. Today we're going to talk about the...
schick09
May 21, 20241 min read
Â
Â
Â


Java 8 Stream - anyMatch Example
We've talked about using java.util.stream.forEach in prior posts. Today we're going to talk about the anyMatch feature of the...
schick09
May 21, 20241 min read
Â
Â
Â


Java 8 Optional - map and filter Examples
We've talked about using java.util.Optional to avoid NullPointerException in production. Today we're going to talk about the map and...
schick09
Apr 24, 20241 min read
Â
Â
Â


Java 8 Static Method References (static::method)
Java 8 introduced method references as a special type of lambda expression. Think of them as a type of 'shorthand' you can use to...
schick09
Mar 16, 20242 min read
Â
Â
Â


Java 8 forEach Examples
In our last blog post, we looked at creating and invoking Consumer functional interfaces. There are many components in the Java language...
schick09
Feb 21, 20243 min read
Â
Â
Â


Java 8 Consumer Functional Interface Examples
java.util.function.Consumer is a functional interface introduced with Java 8. This interface has two operations - 'accept' & 'andThen'. ...
schick09
Jan 22, 20241 min read
Â
Â
Â


Java 8 Interface Enhancements - default & static
Java 8 also introduced a few interesting changes to the good old Java Interface. You can now code an implementation method directly in...
schick09
Nov 12, 20232 min read
Â
Â
Â


Java 8 Optional Overview - Prevent NullPointerException
We’ve all experienced them. No matter how good your junits are. No matter how extensive your PIT testing seems to be. Sooner or later...
schick09
Oct 28, 20233 min read
Â
Â
Â


Two is One and One is None
You’ve probably met a developer or two who liked to talk about ‘job security’ a lot when it comes to software development. This...
schick09
Oct 26, 20232 min read
Â
Â
Â
bottom of page