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 or objects. It is similar to the min and max operations
Write Out XML Tags in Java using Lambda
Missed writing out an XML element end tag in your Java codes? You’re not alone. It is acceptable for small XML documents because spotting the erring codes is relatively easy. However, things may get very frustrating when writing huge XML
Java Lambda Expression Parameter and Return Types
This post demonstrates the type of arguments we can pass to and return from a Lambda expression based on the functional interface abstract method definition.
Change Java Language Level in IntelliJ IDEA
This post shows how to change Java Language Level in IntelliJ IDEA .
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.
Java 8 Convert values in a Stream using Map
Convert any value or object to a different type. For instance, MyEntityBean to MyEntityAPI. No loops. Just Lambda.
Java 8 Get the Min and Max values in a Stream
Do you remember your first programming assignment in college? Most like it is one of those simple Mathematics like get the min and max values from a given list. How about from a list of objects?