There's more...

The Stream class provides other methods to transform the elements of a Stream:

  • mapToInt(), mapToLong(): These methods are identical to the mapToDouble() method, but they generate IntStream and LongStream objects, respectively.
  • flatMapToDouble(), flatMapToInt(), flatMapToLong(): These methods are identical to the flatMap() method, but they work with DoubleStream, IntStream, and LongStream, respectively.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.150.142