Tag: stream

streams min max

Streams min max Java Challenge

Streams are really important for every Java developer to master. Some functions such as max and min are also important and that’s what we will explore in the following Java code challenge! After trying out to solve the Java code challenge on...

stream predicate search

Neo Stream Search Java Challenge

Understanding the mechanics of the functional interface Predicate of a Stream is crucial if you want to create something meaningful with streams. On this challenge, we will explore important key methods when we work with a stream so that it becomes...

stream limit filter

Stream limit filter Java Challenge

To manipulate data from a collection by using a stream is handy and cleaner. To learn how to use streams will make your Java code much better. To know how to limit to filter data with streams is crucial for you to do something useful with a stream...

optional ofNullable filter

Soprano ofNullable stream Challenge

Since Java 9, it’s possible to use Optional with a stream in case we need to manipulate values from a List. In this Java Challenge, we will explore the use of a stream in an Optional! Are you ready to solve this Java Challenge? If you want to...

parallel stream

Parallel Streams Java Challenge

Using streams concurrently with the parallel method is a good idea to optimize performance. It’s not always that we can use the parallel method, for example, when we depend on the order of logic execution. However, when we can process the...

streams set

Streams Set Distinct Java Challenge

Using streams, and Set Collection Factory methods with Java make code easier to read and maintain. By using those features we can also make it more difficult for bugs to hide. If you can use the latest LTS (Long-term support) Java version in your...

stream_map_flatMap

stream, map, flatMap JC #43

Understand how to manipulate a stream within a Collection from an object with the map and flatMap methods. By using a map and flatMap it’s possible to have a flexible and maintainable code. Get the code of the Java Challengers and run your own...

Java Stream parallel forEachOrdered

Learn important principles of stream, parallel and forEachOrdered to improve your Java skills! Go deeper into Java Streams concepts by figuring out this Java challenge! Try to solve it before seeing the answer. Remember, you will acquire a new skill...