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 using Stream and Collectors in Java 8. PersonBean Below is
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.
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 two environment variables. This distribution of Java is self-contained that
Sort Lists in Java 8 using Comparator
This post demonstrates how to use Java 8 Comparator by examples.
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.
How to Add Android SDK in IntelliJ IDEA
This post demonstrates how to add an Android SDK in IntelliJ IDEA.
Tomcat 8 and Java EE CDI
This post demonstrates how Dependency Injection works with Java EE CDI and Tomcat 8.We’ll display some text from a bean injected into our Servlet via CDI.
Kotlin Tutorial
Kotlin is statically typed programming language for modern multi-platform applications. It is also 100% interoperable with Java and Android. Furthermore, it allows for concise, and null-safe codes.
Render XML using Thymeleaf
This post demonstrates how to render an XML to a file from a given XML template using Spring Boot and Thymeleaf.
Java – Sort Objects in Collections
Before Java 8, sorting objects in collections is a bit awkward and verbose in terms of the amount of codes you need to put in. With Java 8, things got easier because of Lambda expressions.