Core Java
-
Java 8 flatMap Example
Hello readers, in this tutorial, we will learn about Java8 Streams API flatMap() method and in which structure it can…
Read More » -
Java 8 Convert a List to Map Example
Hello readers, in this tutorial, we will learn how to convert a List<?> to a Map<K,V> using Java8 Streams API.…
Read More » -
For Each Loop Java 8 Example
In this post, we feature a comprehensive For Each Loop Java 8 Example. Foreach method, it is the enhanced for…
Read More » -
Java 8 LocalDateTime Example
Hello readers, Java provides a new Date and Time API in Java8. This tutorial demonstrates how to use the LocalDateTime…
Read More » -
Java 8 Parallel Streams Example
Hello readers, Parallel Streams are the greatest addition to Java8 after Lambdas. This tutorial explains the parallel streams concept in…
Read More » -
Java 8 Method Reference Example
Hello readers, Java provides a new feature called method reference in Java8. This tutorial explains the method reference concept in…
Read More » -
Java 8 Collect vs Reduce Example
Hello readers, this tutorial explains the concept of reducing and collecting in Streams and Collector’s API respectively. 1. Introduction 1.1…
Read More » -
Java 8 Comparator Example
Hello readers, this tutorial explains how to use Lambda expressions in order to improve the boilerplate code of the Comparator…
Read More » -
Java 8 Consumer and Supplier Example
Hello readers, this tutorial explains the in-built functional interfaces (i.e. Consumer<T> and Supplier<T>) introduced in Java8. 1. Introduction These features…
Read More »