Use this tag for questions related to the use of the Stream API.
If I have collections Point , how do I compute average of x,y using Java 8 stream on a single iteration. …
java java-8 java-stream collectorsI have a Spring data repository: @Repository interface SomeRepository extends CrudRepository<Entity, Long> { Stream<Entity> streamBySmth(…
java spring spring-data java-stream spring-jdbcI am trying to collect into a ListMultiMap using java 8 without using the forEach operation. If I were to write …
java java-8 java-stream guava collectorsI want to convert a tree in a Java8 stream of nodes. Here is a tree of nodes storing data …
tree-traversal java-streamSay you want to stream the elements of an iterator; let's use a concrete example of a Scanner, which implements …
java iterator java-8 java-stream iterableI have been struggling with this issue for a few days now. I am trying to create Pivot functionality using …
java java-8 pivot java-stream collectorsThis is Java object to handle in Java 8 stream private static List<Person> getPersons() { List<Person> …
java java-stream collectorsI wish to clarify upfront I am looking for a way to calculate Standard deviation using Streams (I have a …
java java-8 java-stream standard-deviationtry (Stream<String> lines = Files.lines(targetFile)) { List<String> replacedContent = lines.map(line -> StringUtils.…
java java-8 newline java-stream replaceallI have a List of Google PlaceSummary objects taken from the Google Places API. I'd like to collect and group …
java java-8 java-stream linkedhashmap collectors