Comparator nullsFirst and nullsLast
Comparator nullsFirst and nullsLast methods returns a null-friendly comparator. It considers null to be less than or greater than any non-null value.
Monthly Archives: July 2020
Comparator nullsFirst and nullsLast methods returns a null-friendly comparator. It considers null to be less than or greater than any non-null value.
Java 8 added three Summary Statistics classes viz., IntSummaryStatistics LongSummaryStatistics and DoubleSummaryStatistics used to collect statistics.
The Apache Commons IO has utilities to help with various IO functionalities. In this post, we will see about the Apache Commons IO IOUtils class.
A Priority Queue is an unbounded queue based on a priority heap. The elements are ordered according to their natural ordering or by a Comparator provided.