How to use Java 8 Stream Collectors.groupingBy() Examples

Tutorial: “How to use Java 8 Stream Collectors.groupingBy() Examples”

In the tutorial, Ozenero will show how to use Grouping By APIs of Java Stream Collectors by examples:

  • Explore Stream GroupingBy Signatures
  • Combine groupingBy API with others Reduction Operations

Now let’s do more details!

Related posts:
Java Stream.Collectors APIs Examples
Java 8 Stream Reduce Examples

Continue reading “How to use Java 8 Stream Collectors.groupingBy() Examples”

Java 8 Stream.collect() – Stream.Collectors APIs Examples

[no_toc]
Java 8 provides an extremely powerful abstract concept Stream with many useful mechanics for consuming and processing data in Java Collection. In the tutorial, We will do lots of examples to explore more the helpful of Stream API with Collectors operation on the specific topic: “Java 8 Stream Collector”.

What will we do?

  • Explore Stream Collect Method signatures
  • Apply Stream Collectors Util with Examples

Now let’s do more details!

Related posts:
Java 8 Stream Reduce Examples
Java 8 Stream FlatMap Examples

Continue reading “Java 8 Stream.collect() – Stream.Collectors APIs Examples”

How to use Java 8 Stream Reduce Examples with List and Array

[no_toc]
Java 8 provides an extremely powerful abstract concept Stream with many useful mechanics for consuming and processing data in Java Collection. In the tutorial, We will do lots of examples to explore more the helpful of Stream API with reduction operation on the specific topic: “Java 8 Stream Reduce Collection”.

What will we do?

  • Explain how Java 8 Stream Reduce work?
  • Apply Stream Reduction on Java List, Array

Now let’s do examples for more details!

Related posts:
Java 8 Stream FlatMap Examples
Stream Filter in Java 8

Continue reading “How to use Java 8 Stream Reduce Examples with List and Array”

How to use Java 8 Stream FlatMap Examples with List, Array

[no_toc]
In the tutorial, we will discover more aspect of Java 8 Stream API with flatMap() function by lots of examples.
What we will do:

  • Explain how Java 8 Stream FlatMap work?
  • Apply Stream FlatMap on Java List, Array

Now let’s do more details!

Related posts:
Java 8 Stream Map Examples
Java 8 Stream Filter Examples

Continue reading “How to use Java 8 Stream FlatMap Examples with List, Array”

How to use Java 8 Stream Map Examples with a List or Array

[no_toc]
Converting or transforming a List and Array Objects in Java is a common task when programming. In the tutorial, We show how to do the task with lots of Java examples code by 2 approaches:

  • Using Traditional Solution with basic Looping
  • Using a powerful API – Java 8 Stream Map

Now let’s do details with examples!

Related posts:
Java 8
Java 8 Streams

Continue reading “How to use Java 8 Stream Map Examples with a List or Array”