Category: Tutorial

Java 8 Stream filter Sample

Java 8 Streams filter method returns a stream consisting of the elements of this stream that match the given predicate. The Stream.filter() method will transform the data of one stream into another stream using whatever condition you have set.

Java 8 Stream collect Sample

Java 8 Streams collect method performs a mutable reduction operation on the stream elements. Stream elements are included into the result by updating rather than by replacing. The Java 8 Stream collect() method is a terminal operation. After the

Java 8 Stream map Sample

Java 8 Streams map method returns a stream base on the results of applying the given function to the elements in this stream. We can use function for transforming the objects based on the input method. The sample

Java 8 Stream forEach Sample

Java 8 Streams forEach method is simplest and most widely used operation. The forEach() method will loop over the stream elements and call the supplied function on each element. The Stream.forEach() method works like the standard for loop. It

Java 8 Stream Operations

Java 8 Streams API supports parallel operations to process your data, while completely abstracting out the low level multi-threading logic. This logic allows the developer to fully concentrate on the data and the operations to be performed on the

Java 8 Stream Creation

Java 8 Streams are completely different than the streams related to File Input/Operations, like InputStream or FileInputStream as two examples. This is not that. So what is a Java 8 Stream? Stream is a new abstract layer introduced in

Java Array of Arrays

We have already talked at length about Arrays in lesson 5 so I think we are good there. However, we have not touched on an Array of Arrays or what many programmers call Multidimensional Arrays. Let’s explain the concept