kps
kps

Reputation: 173

Deleting elements of Java 8 stream

How can elements of a stream be removed to generate another stream. I wish to have a filter on a stream, and for each element passing that filter, I want to delete that element from the stream.

Upvotes: 1

Views: 97

Answers (1)

Chris311
Chris311

Reputation: 3992

Use the filter-method from Java Streams.

Upvotes: 1

Related Questions