Software Development

Java 8 – Reuse Predicates by combining Lambdas

This post demonstrates how to reuse Predicate @FunctionalInterface implementations to reduce duplicate codes in your applications.

Read More...

Java, Software Development

Java 8 – Convert Iterator to Stream

Although not a common scenario, some libraries just return Iterator instead of actual Stream or Collection objects.

Read More...

Software Development

Create Your Own Functional Interface in Java 8

What is a Functional Interface? [wp_ad_camp_1] Java 8 offers Lambda expressions to help us write better, and concise codes. Lambda expressions revolve around Functional Interfaces. So, what are Functional Interfaces?

Read More...

Software Development

Java Functional Interface abstract method and 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.

Read More...

Java, Software Development

A More Convenient Way to Write Out Start and End XML Tags in Java using Lambda

Did you miss writing out an XML element end tag in your Java codes? It is fine when generating a small XML document because it is easy to spot the erring codes.

Read More...