Jul 24, 2017 · 1 min read
to be fair, you don’t have to check for nulls in Java. Sometimes you do want nullpointers. If playPercentage is a primitive, it won’t be null. And it was a poorly written piece of Java code to start with. I could get pretty close to the end result with Java 8.
