Gang Of Coders
Home
About Us
Contact Us
All Java Stream Solutions on Gang of Coders
Total of 161 Java Stream Solutions
How to flatmap a stream of streams in Java?
Java
Java 8
Java Stream
Null safe date comparator for sorting in Java 8 Stream
Java
Java 8
Java Stream
Java 8 - omitting tedious collect method
Java
Java 8
Java Stream
What is difference between Collection.stream().forEach() and Collection.forEach()?
Java
Collections
Java 8
Java Stream
Does Java 8 lack a Stream.concat working on a varags of streams?
Java
Java 8
Java Stream
How to apply multiple predicates to a java.util.Stream?
Java
Lambda
Java 8
Java Stream
Predicate
How do I get an IntStream from a List<Integer>?
Java
Collections
Java 8
Java Stream
Boxing
Java 8 stream unpredictable performance drop with no obvious reason
Java
Performance
Lambda
Java Stream
Jmh
In Java 8, is there a ByteStream class?
Java
Java 8
Byte
Java Stream
Boxing
Java Stream difference between map and mapToObj
Java
Java 8
Java Stream
Mystifying microbenchmark result for stream API on Java 12 vs. Java 8 with -gc true
Java
Java Stream
Benchmarking
Jmh
Java 12
Why is shared mutability bad?
Java
Java 8
Java Stream
Immutability
Java 8 Streams: multiple filters vs. complex condition
Java
Lambda
Filter
Java 8
Java Stream
Simplest way to print an `IntStream` as a `String`
Java
Java 8
Java Stream
Stream and lazy evaluation
Java
Java 8
Java Stream
Group by and sum objects like in SQL with Java lambdas?
Java
Lambda
Java 8
Java Stream
Avoid NoSuchElementException with Stream
Java
Java 8
Java Stream
Optional
Java 8 lambdas group list into map
Java
Java 8
Java Stream
Close Java 8 Stream
Java
Java 8
Java Stream
Why does Stream<T> not implement Iterable<T>?
Java
Java 8
Java Stream
Iterable
Java 8 method references: provide a Supplier capable of supplying a parameterized result
Java
Java 8
Java Stream
Where is the Java 8 Consumer with more than one argument?
Java
C#
Lambda
Java 8
Java Stream
Convert String array to Map using Java 8 Lambda expressions
Java
Lambda
Functional Programming
Java 8
Java Stream
What is the difference between Stream.of and IntStream.range?
Java
Java Stream
Filter Java Stream to 1 and only 1 element
Java
Lambda
Java 8
Java Stream
How to map to multiple elements with Java 8 streams?
Java
Lambda
Closures
Java 8
Java Stream
Why doesn't java.util.Collection implement the new Stream interface?
Java
Lambda
Functional Programming
Java 8
Java Stream
How to sum values in a Map with a stream?
Java
Java 8
Java Stream
Generics
New object instantiation when using Java 8 streams
Java
Lambda
Java 8
Java Stream
Method Reference
Transform and filter a Java Map with streams
Java
Java 8
Java Stream
Collectors
Using Java 8's Optional with Stream::flatMap
Java
Lambda
Java 8
Java Stream
Java 8 list processing - add elements conditionally
Java
Collections
Java 8
Java Stream
Why does Iterable<T> not provide stream() and parallelStream() methods?
Java
Java 8
Java Stream
Iterable
Java8: HashMap<X, Y> to HashMap<X, Z> using Stream / Map-Reduce / Collector
Java
Mapreduce
Java 8
Java Stream
Collectors
Using streams to convert a list of objects into a string obtained from the toString method
Java
Java 8
Java Stream
Why are Java Streams once-off?
Java
Java 8
Java Stream
Api Design
Java 8 List<V> into Map<K, V>
Java
Lambda
Java 8
Java Stream
How to use a Java8 lambda to sort a stream in reverse order?
Java
Lambda
Java 8
Java Stream
Java 8 - Best way to transform a list: map or foreach?
Java
Java 8
Java Stream
How to convert a Java 8 Stream to an Array?
Java
Arrays
Java 8
Java Stream
Java 8 stream's .min() and .max(): why does this compile?
Java
Java 8
Java Stream
Java 8: How do I work with exception throwing methods in streams?
Java
Java 8
Unhandled Exception
Java Stream
Does Java SE 8 have Pairs or Tuples?
Java
Lambda
Functional Programming
Java 8
Java Stream
Limit a stream by a predicate
Java
Java 8
Java Stream
Adding up BigDecimals using Streams
Java
Bigdecimal
Java 8
Java Stream
Java 8 Stream and operation on arrays
Java
Arrays
Java 8
Java Stream
What's the difference between map() and flatMap() methods in Java 8?
Java
Java 8
Java Stream
Java 8 stream reverse order
Java
List
Sorting
Java 8
Java Stream
What Java 8 Stream.collect equivalents are available in the standard Kotlin library?
Java
Kotlin
Collections
Java 8
Java Stream
How to add elements of a Java8 stream into an existing List
Java
Java 8
Java Stream
Collectors
Is it possible to cast a Stream in Java 8?
Java
Java 8
Java Stream
Why is a combiner needed for reduce method that converts type in java 8
Java
Java 8
Java Stream
How to ensure order of processing in java8 streams?
Java
Java 8
Java Stream
In Java streams is peek really only for debugging?
Java
Java 8
Java Stream
Peek
In Java, what are the advantages of streams over loops?
Java
Loops
Java 8
Java Stream
Should I return a Collection or a Stream?
Java
Collections
Java 8
Encapsulation
Java Stream
Can you split a stream into two streams?
Java
Java 8
Java Stream
In Java 8 how do I transform a Map<K,V> to another Map<K,V> using a lambda?
Java
Map
Lambda
Java 8
Java Stream
Adding two Java 8 streams, or an extra element to a stream
Java
Concat
Java 8
Java Stream
How can I get a List from some class properties with Java 8 Stream?
Java
Collections
Java 8
Java Stream
Fetch first element of stream matching the criteria
Java
Java 8
Java Stream
Zipping streams using JDK8 with lambda (java.util.stream.Streams.zip)
Lambda
Functional Programming
Java 8
Lazy Evaluation
Java Stream
Java 8 Streams - collect vs reduce
Java
Java 8
Java Stream
Java 8: performance of Streams vs Collections
Java
Performance
Collections
Java 8
Java Stream
Difference between Java 8 streams and RxJava observables
Java 8
Java Stream
Rx Java
Observable
Copy a stream to avoid "stream has already been operated upon or closed"
Java
Lambda
Java 8
Java Stream
Get last element of Stream/List in a one-liner
Java
List
Java 8
Java Stream
How to check if a Java 8 Stream is empty?
Java
Java 8
Java Stream
How can I create a stream from an array?
Java
Arrays
Java 8
Java Stream
Find first element by predicate
Java
Java 8
Java Stream
Should I always use a parallel stream when possible?
Java
Parallel Processing
Java 8
Java Stream
Java 8 functional interface with no arguments and no return value
Java
Java 8
Java Stream
'Optional.get()' without 'isPresent()' check
Java
Java 8
Java Stream
Optional
Java 8 Distinct by property
Java
Collections
Java 8
Java Stream
Distinct Values
Sorting a list with stream.sorted() in Java
Java
List
Sorting
Java Stream
Java 8 Stream with batch processing
Java
Java 8
Batch Processing
Java Stream
Java 8 lambda get and remove element from list
Java
Lambda
Java 8
Java Stream
Collect successive pairs from a stream
Java
Java 8
Java Stream
How to find maximum value from a Integer using stream in Java 8?
Java 8
Java Stream
Why does findFirst() throw a NullPointerException if the first element it finds is null?
Java
Java 8
Java Stream
Optional
When should I use streams?
Java
Java 8
Java Stream
Difference between findAny() and findFirst() in Java 8
Java
Java 8
Java Stream
Reverse a comparator in Java 8
Java
Sorting
Java 8
Comparator
Java Stream
Java 8 Iterable.forEach() vs foreach loop
Java
For Loop
Java 8
Java Stream
Java 8, Streams to find the duplicate elements
Java
Lambda
Java 8
Java Stream
Why can't I map integers to strings when streaming from an array?
Java
Functional Programming
Java 8
Java Stream
Java 8: preferred way to count iterations of a lambda?
Java
Lambda
Java 8
Java Stream
Multiple null checks in Java 8
Java
Lambda
Java 8
Java Stream
Optional
forEach vs forEachOrdered in Java 8 Stream
Java
Foreach
Java 8
Java Stream
Check instanceof in stream
Java
Java 8
Java Stream
Instanceof
How do I keep the iteration order of a List when using Collections.toMap() on a stream?
Java
Collections
Java 8
Java Stream
Convert Iterable to Stream using Java 8 JDK
Java
Java 8
Java Stream
Iterable
Retrieving a List from a java.util.stream.Stream in Java 8
Java
Lambda
Collections
Java 8
Java Stream
Why does Stream.allMatch() return true for an empty stream?
Java
Lambda
Java 8
Java Stream
Java 8 Stream API to find Unique Object matching a property value
Java
Filter
Java 8
Java Stream
How should we manage jdk8 stream for null values
Java
Null
Java 8
Java Stream
Sum values from specific field of the objects in a list
Java
Filter
Java 8
Java Stream
Collectors.toSet() and HashSet
Java
Java 8
Java Stream
Collectors
Is there a concise way to iterate over a stream with indices in Java 8?
Java
Java 8
Java Stream
Is it possible to use the Java 8 Stream API on Android API < 24?
Java
Android
Java 8
Java Stream
NullPointerException in Collectors.toMap with null entry values
Java
Nullpointerexception
Java Stream
Collectors
Modifying Objects within stream in Java8 while iterating
Java
Java 8
Java Stream
Merge lists with stream API
Java
List
Java 8
Java Stream
Custom thread pool in Java 8 parallel stream
Java
Concurrency
Parallel Processing
Java 8
Java Stream
Java stream toArray() convert to a specific type of array
Java
Arrays
Java 8
Java Stream
How to make a new list with a property of an object which is in another list
Java
List
Collections
Java Stream
Guava
How to sum a list of integers with java streams?
Java
Java 8
Java Stream
Java 8 Streams FlatMap method example
Java
Java 8
Java Stream
Flatmap
Why does parallel stream with lambda in static initializer cause a deadlock?
Java
Java 8
Deadlock
Java Stream
Fork Join
Java 8: Formatting lambda with newlines and indentation
Java
Eclipse
Lambda
Java 8
Java Stream
How can I collect a Java 8 stream into a Guava ImmutableCollection?
Java 8
Guava
Java Stream
Collectors.toMap() keyMapper -- more succinct expression?
Java
Collections
Lambda
Java 8
Java Stream
How do I turn a Java Enumeration into a Stream?
Java
Java 8
Java Stream
How to concatenate a string with the new 1.8 stream API
Java
Java 8
Java Stream
How do I create an empty Stream in Java?
Java
Java Stream
Enumerable
Is there any way to reuse a Stream?
Java
Java Stream
Reusability
How to split a String into a Stream of Strings?
Java
Regex
Split
Java Stream
Java 8 Collectors.toMap SortedMap
Java
Lambda
Java 8
Java Stream
Collectors
Why filter() after flatMap() is "not completely" lazy in Java streams?
Java
Lambda
Java 8
Java Stream
Most efficient way to get the last element of a stream
Java
Java 8
Java Stream
Cleanest way to create a Guava Multimap from a Java 8 stream
Java
Java Stream
Guava
Java 8 stream map on entry set
Java
Lambda
Java Stream
How to convert an Optional<T> into a Stream<T>?
Java
Java 8
Java Stream
Optional
Stream Way to get index of first element matching boolean
Java
Java 8
Java Stream
Is mapToDouble() really necessary for summing a List<Double> with Java 8 streams?
Java
Java 8
Java Stream
takeWhile() working differently with flatmap
Java
Lambda
Java Stream
Java 9
Can I duplicate a Stream in Java 8?
Java
Java 8
Java Stream
Create list of object from another using Java 8 Streams
Java
Java Stream
Can Java 8 Streams operate on an item in a collection, and then remove it?
Java
Collections
Java 8
Filtering
Java Stream
Is there an elegant way to process a stream in chunks?
Java
Java 8
Java Stream
Chunking
Collection to stream to a new collection
Java
Java 8
Java Stream
Modify property value of the objects in list using Java 8 streams
Java 8
Java Stream
Null safe Collection as Stream in Java 8
Java
Collections
Null
Java 8
Java Stream
Partition a Java 8 Stream
Java
Functional Programming
Java 8
Java Stream
Java 8's streams: why parallel stream is slower?
Java
Performance
Parallel Processing
Java 8
Java Stream
Word frequency count Java 8
Java
Java 8
Java Stream
Word Count
Java 8 stream map to list of keys sorted by values
Java
Collections
Lambda
Java 8
Java Stream
Java 8 Stream Collecting Set
Java
Java 8
Java Stream
Java 8 Stream: difference between limit() and skip()
Java
Java 8
Limit
Java Stream
Skip
Want to create a stream of characters from char array in java
Java
Java 8
Java Stream
java.util.stream with ResultSet
Java
Jdbc
Lambda
Java Stream
Jooq
How to use if-else logic in Java 8 stream forEach
Java
Java 8
Java Stream
Understanding deeply spliterator characteristics
Java
Java 8
Java Stream
Spliterator
Collectors.groupingBy doesn't accept null keys
Java
Hashmap
Java 8
Java Stream
Collectors
Merging two Map<String, Integer> with Java 8 Stream API
Java
Merge
Java 8
Java Stream
How can I throw CHECKED exceptions from inside Java 8 streams?
Java
Lambda
Java 8
Java Stream
Checked Exceptions
Ignore duplicates when producing map using streams
Java
Java 8
Java Stream
Why is Files.lines (and similar Streams) not automatically closed?
Java
Stream
Java 8
Java Stream
Resource Leak
Sorting by property in Java 8 stream
Java
Sorting
Lambda
Java 8
Java Stream
Iterator versus Stream of Java 8
Java
Java 8
Domain Driven-Design
Java Stream
Domain Model
A better approach to handling exceptions in a functional way
Java
Java 8
Java Stream
Java 8 apply function to all elements of Stream without breaking stream chain
Java
Java 8
Java Stream
Chaining
How to remove an element of a HashMap whilst streaming (lambda)
Java
Dictionary
Iterator
Java Stream
How to check if exists any duplicate in Java 8 Streams?
Java
Java 8
Duplicates
Java Stream
Java stream map and collect - order of resulting container
Java
List
Java 8
Java Stream
Stream Filter of 1 list based on another list
Java
Arraylist
Java 8
Java Stream
Java 8 lambdas, Function.identity() or t->t
Java
Lambda
Java 8
Java Stream
Stream of boolean values, is any true?
Java
Lambda
Parallel Processing
Java 8
Java Stream
Java stream - Sort a List to a HashMap of Lists
Java
Java 8
Hashmap
Java Stream
Java 8 toMap IllegalStateException Duplicate Key
Java
Java 8
Java Stream
Collectors
Take every nth element from a Java 8 stream
Java
Java 8
Java Stream