1

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.

1

1 Answer 1

1

Use the filter-method from Java Streams.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.