Java, Software Development

How To Use Java 8 Stream Reduce Example

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

Read More...

Java, Software Development

Java 8 – Convert Iterator to Stream Using StreamSupport

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

Read More...

Software Development

Convert String to LocalDate in JodaTime and Java 8

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

Read More...

Software Development

Kotlin – Using Java 8 Date and Time API

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

Read More...

Software Development

Group List items into Several Lists using Stream in Java 8

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

Read More...

Software Development

Java – Sort an Enum type by its properties

When we sort an array or collection of Enum types, the sort order is based on the natural order.

Read More...

Ballerina, Software Development

Run Ballerina On Command-Line Without Installing Java

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

Read More...

Software Development

Sort Lists in Java 8 using Comparator

This post demonstrates how to use Java 8 Comparator by examples.

Read More...

Software Development

Java Compiler Weird Error in Travis CI due to Implicit Exception type

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.

Read More...

Software Development

How to Add Android SDK in IntelliJ IDEA

This post demonstrates how to add an Android SDK in IntelliJ IDEA.

Read More...