Use this tag for questions related to the use of the Stream API.
What I would like to achieve with lambda indentation is the following: Multi-line statement: String[] ppl = new String[] { "Karen (F)", "…
java eclipse lambda java-8 java-streamThis code works (taken in the Javadoc): List<Integer> numbers = Arrays.asList(1, 2, 3, 4); String commaSeparatedNumbers = numbers.stream() .map(i …
java functional-programming java-8 java-streamWhat is the best method of splitting a String into a Stream? I saw these variations: Arrays.stream("b,l,…
java regex split java-streamI am creating a Map from a List as follows: List<String> strings = Arrays.asList("a", "bb", "ccc"); …
java collections java-8 java-streamAre Java 8 streams similar to RxJava observables? Java 8 stream definition: Classes in the new java.util.stream package provide a …
java-8 java-stream rx-java observableI'm having trouble fully understanding the role that the combiner fulfils in Streams reduce method. For example, the following code …
java java-8 java-streamUnlike C#'s IEnumerable, where an execution pipeline can be executed as many times as we want, in Java a …
java java-8 java-stream api-designAs far as I can tell, the way to sum a List<Double> using Java 8 streams is this: …
java java-8 java-streamSuppose I have a method that returns a read-only view into a member list: class Team { private List < Player &…
java collections java-8 encapsulation java-streamI'm learning the new Java 8 features, and while experimenting with streams (java.util.stream.Stream) and collectors, I realized that …
java java-stream reusability