排序
Removing elements from a Map in Java
Removing elements from a Map in Java,Very short and simple post on removing elements from a Map in Java. We will be focusing on removing multiple elements and ignore the fact you c...
Useful stream utilities not found in Java
Useful stream utilities not found in Java,Photo by Karan Chawla on Unsplash A bit of context The standard Java library makes a reasonable attempt to provide useful utility methods ...
Java 8 lambdas: 101
Java 8 lambdas: 101,All you need is 5 minutes to grok the Lambda expressions introduced in Java 8. This post acts as a starter by quickly demonstrating how lambdas are super cool i...
What is `map` in a Java Stream
What is `map` in a Java Stream,Originally published at www.gunnargissel.com Mapping is how to convert one type of object to another with a stream. Say you have a set of Fruit and y...
Filter Null Values from a List with Java8 Lambda
Filter Null Values from a List with Java8 Lambda,A common task with Java streams is to clean up the input data so later steps can work without thinking too hard. Likely the #1 most...
Finding Null or Empty String Checks in Java
Finding Null or Empty String Checks in Java,I have a lot of code like this: if( null == myString || ''.equals(myString)) doAThing(); Enter fullscreen mode Exit fullscreen mode The ...