Category Archives for Java

Introduction to Spliterator in Java

A quick introduction to the Java spliterator. Learn what are the different features of Java spliterator and how to create a custom spliterator.

Continue reading

Java String replaceAll

A quick guide to the Java String replaceAll method. Learn how to use the replaceAll method work with String manipulation for your Java application.

Continue reading

Iterable to Stream in Java

A quick post to convert Java Iterable into a Stream.Learn how to convert Iterable in to Java 8 stream using the StreamSupport.stream() method.

Continue reading

The Double Colon Operator in Java 8

Updated on June 25th, 2019In this article of Java 8, we will look at the double colon operator introduced in Java 8.   Introduction Java 8 introduced method reference or double colon operator. The main intention of this new operator is to make the code more readable and to reduce some code. Method reference is […]

Continue reading

The Difference Between map() and flatMap()

A quick guide to the difference between map and flatMap in Java. Learn what are the differences between map and flatMap and when to use map vs flatMap.

Continue reading