Tag: java stream filter

  • Java 8 Stream API

    Java 8 Stream API

    In this article, we’ll learn everything regarding Java Stream API that was introduced in Java 8, through detailed examples. 1. What Is a Java Stream? You can think of a stream as a sequence of elements, that allows you to perform sequential and parallel operations. Furthermore, you cannot add any elements once the stream has…

  • Java Stream Filter

    Java Stream Filter

    In this article, we’ll go through the Java Stream filter() method through detailed examples. 1. Java Stream Filter Method Overview The stream.filter() method is used to filter an object or a primitive based on the truthness of a boolean. The syntax of this method is the following: The predicate could have one of the following…