Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 612 Bytes

File metadata and controls

17 lines (14 loc) · 612 Bytes

java 8 Stream API example

Read Java 8 Stream API Tutorial for detail explanation.

This project shows sample code on how to create:

  • Stream of Collection
  • Stream of values
  • Stream of Array
  • Stream from Stream.Builder
  • Infinite Stream

This project shows example of Java 8 Stream API to:

  • Convert List of objects to another List of objects
  • Create new list by filtering elements in List
  • Find element from a List by property of element
  • Find maximum and minimum number from List of Integers
  • Get sum of integers in using reduce operation