The Artima Developer Community
Sponsored Link

Java Buzz Forum
Difference between map and flatMap in java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Arpit Mandliya

Posts: 190
Nickname: mandliya23
Registered: May, 2017

Arpit Mandliya is Java programmer working on Core java, Spring, Hibernate
Difference between map and flatMap in java Posted: Oct 16, 2017 5:20 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Arpit Mandliya.
Original Post: Difference between map and flatMap in java
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
Latest Java Buzz Posts
Latest Java Buzz Posts by Arpit Mandliya
Latest Posts From Java tutorial for beginners

Advertisement

In this post, we will see the difference between map and flatMap in java.I have already covered Stream’s map and flatMap methodsĀ  in previous articles. As you might know, Stream’s map and flatMap method both can be applied on Stream<T> and return Stream<R> as output. The actual difference is, map operation produces one output value for one input value but flatMap operation produces zero or more number of values for each input value. Let’s understand with the help of the simple example. Stream map vs flatMap You have list of String and you want to make them uppercase, in this

The post Difference between map and flatMap in java appeared first on Java2Blog.

Read: Difference between map and flatMap in java

Topic: Basics of Servlets Tutorial Previous Topic   Next Topic Topic: [MEGA DEAL] AWS Solution Architect Certification Training Bundle (92% off)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use