Use this tag for questions related to the use of the Stream API.
I know how to "transform" a simple Java List from Y -> Z, i.e.: List<String> …
java mapreduce java-8 java-stream collectorsWith Java 8 and lambdas it's easy to iterate over collections as streams, and just as easy to use a parallel …
java parallel-processing java-8 java-streamI have a List<Person>. I need to get a List from a property of Person. For example, …
java collections java-8 java-streamSuppose I have a class and a method class A { void foo() throws Exception() { ... } } Now I would like to call …
java java-8 unhandled-exception java-streamI have a list myListToParse where I want to filter the elements and apply a method on each element, and …
java java-8 java-streamThe new Java 8 stream framework and friends make for some very concise java code, but I have come across a …
java lambda java-8 java-streamI am trying to list out duplicate elements in the integer list say for eg, List<Integer> numbers = …
java lambda java-8 java-streamNote: this question originates from a dead link which was a previous SO question, but here goes... See this code (…
java java-8 java-streamGiven a list of elements, I want to get the element with a given property and remove it from the …
java lambda java-8 java-streamMap<String, String> phoneBook = people.stream() .collect(toMap(Person::getName, Person::getAddress)); I get java.lang.IllegalStateException: Duplicate …
java java-8 java-stream