This post shows how to use Java Stream Reduce with example codes. The idea of the reduce operation is the generation of a single result from a collection of values
Although not a common scenario, some libraries return Iterators instead of Stream or Collection objects. Why? Because they can. If the Java libraries you are using have methods that return
Handling dates (and time) is never easy and time-consuming. Moreover, its support by Java has been inadequate. If you find yourself longing for some libraries to ease the pain, go
This post shows sample Kotlin codes that use the Java 8 Date and Time API (java.time). Requirements These are Software applications used for this post. IntelliJ IDEA Ultimate 2016.3 The
Group List items into Several Lists using Stream in Java 8 is easy. We have a list of Persons and we want to group them into Female, Male, Unknown list
When we sort an array or collection of Enum types, the sort order is based on the natural order.
This post shows how to run Ballerina On Command-Line without installing the Java Development Kit (JDK) in Windows 10 64-bit. Instead, we use a zip distribution of Java with only
This post demonstrates how to use Java 8 Comparator by examples.
We were trying to build this Maven project in Travis CI and got a weird compilation error. After modifying the codes to explicitly define the exception types.
This post demonstrates how to add an Android SDK in IntelliJ IDEA.