Category Archives

List of all Java Keywords

Keywords or Reserved words are the words in a language that are used for some internal process or represent...

List of all Java Keywords

Keywords or Reserved words are the words in a language that are used for some internal process or represent...

10 Ways to Create a Stream in Java

The Stream API, introduced in Java 8, it is used to process collections of objects. Stream is a sequence...

10 Ways to Create a Stream in Java

The Stream API, introduced in Java 8, it is used to process collections of objects. Stream is a sequence...

Java Collectors

Collectors is one of the utility class in JDK which contains a lot of utility functions. It is mostly...

Java Collectors

Collectors is one of the utility class in JDK which contains a lot of utility functions. It is mostly...

Generate Infinite Stream of Integers in Java

Given the task is to generate an infinite sequential unordered stream of integers in Java. Using IntStream.iterate(): Using the...

Generate Infinite Stream of Integers in Java

Given the task is to generate an infinite sequential unordered stream of integers in Java. Using IntStream.iterate(): Using the...

Stream.Builder build() in Java

Stream.Builder build() builds the stream, transitioning this builder to the built state. Syntax : Stream<T> build() Exceptions : IllegalStateException...

Stream.Builder build() in Java

Stream.Builder build() builds the stream, transitioning this builder to the built state. Syntax : Stream<T> build() Exceptions : IllegalStateException...

LongStream.Builder build() in Java

LongStream.Builder build() builds the stream, transitioning this builder to the built state. Syntax : LongStream build() Return Value: This...

LongStream.Builder build() in Java

LongStream.Builder build() builds the stream, transitioning this builder to the built state. Syntax : LongStream build() Return Value: This...

Stream.Builder accept() method in Java

Stream.Builder accept(T t) is used to insert an element into the element in the building phase of stream. It...

Stream.Builder accept() method in Java

Stream.Builder accept(T t) is used to insert an element into the element in the building phase of stream. It...

Stream.Builder add() method in Java

Stream.Builder add(T t) is used to insert an element into the element in the building phase of stream. It...

Stream.Builder add() method in Java

Stream.Builder add(T t) is used to insert an element into the element in the building phase of stream. It...

Intermediate Methods of Stream in Java

The Stream API is used to process collections of objects. A stream is a sequence of objects that supports...

Intermediate Methods of Stream in Java

The Stream API is used to process collections of objects. A stream is a sequence of objects that supports...

Comparing Streams to Loops in Java

A stream is an ordered pipeline of aggregate operations(filter(), map(), forEach(), and collect()) that process a (conceptually unbounded) sequence...

Comparing Streams to Loops in Java

A stream is an ordered pipeline of aggregate operations(filter(), map(), forEach(), and collect()) that process a (conceptually unbounded) sequence...