Java Streams Part 3 - Map Method | Mapping Collection by using Stream | Hands-On

preview_player
Показать описание
Topics :
---------
1) Map Method
2) Mapping Collection by using Stream
3) Hands-On

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************

Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Python Programming
*********************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

####################################
Youtube Playlists:
####################################

Manual Testing & Agile
***********************

SQL
*************************

linux & Shell Scripting
**********************

Java
**********************

Selenium With Java+Cucumber
********************************

Python
********************************

Selenium With Python,Pytest&Behave
***************************************

Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************

API Testing (Postman,SoapUi,&Rest Assured)
**********************************************

Mobile App Testing Appium
****************************

Performance Testing Jmeter
*******************************

Maven,Jenkins,Git,Github,CI/CD
*******************************

SQL,DB Testing&ETL,Bigdata
*******************************

JavaScript Based Automation Tools
********************************

Selector Hub Tools
********************

GraphQL
******************

Cypress API Testing
********************

Cypress Web Testing
**********************

Playwright with Javascipt
**************************

#JavaStreams
#JavaProgramming
#CodingInJava
#StreamAPI
#FunctionalProgramming
#JavaDevelopment
#CodeWithMe
#LearnJava
#StreamOperations
#JavaBeginners
#JavaTutorials
#CodeByExample
#LambdaExpressions
#JavaCoding
#CodeSnippets
#JavaTips
#ProgrammingInJava
#JavaCommunity
#StreamManipulation
#JavaProjects
#CodingTips
#JavaLearning
#IntermediateJava
#StreamFiltering
#JavaExperts
#JavaMastery
#AdvancedJava
#StreamMapping
#JavaTricks
#JavaInDepth
#StreamReduction
#JavaSnippets
#CodingInStreams
#JavaSkills
#StreamExamples
#JavaCodeTips
#JavaStreamLibrary
#StreamChaining
#JavaProgrammingTips
#StreamTermination
#JavaCodeExamples
#StreamBestPractices
#JavaDevelopmentTips
#StreamIntermediateOperations
#JavaProgrammingLanguage
#StreamAdvancedTechniques
#JavaCodeSnippets
#StreamCodingChallenges
#JavaStreamTricks
#JavaStreamExplained
Рекомендации по теме
Комментарии
Автор

Honestly, I have never commented on a video before on youtube but for this I cannot hold my peace than to Thank you for this wonderful videos. You have my 5 stars already. I really really love this

ibrahimhamid
Автор

11.24 - it seems, map will take Function as parameter, not Consumer

sudarshanar
Автор

map(Function<? super T, ? extends R> mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream...
Sir u said that map acts like a <consumer> but it acts like a Function right

Hari_Goud
Автор

Fantastic Explanation in Java 8 i saw all udemy and youtubue channel this is one fantastic explanation and eazily understand once study.

bnagarajan
Автор

You are Teaching for each and every topic...Thank you so much

funvideos
Автор

forEach(Consumer<? super T> action)
Performs an action for each element of this stream.
forEach acts like a consumer

Hari_Goud
Автор

Great video. Thanks for uploading it. ❤

TheMorningLotus
Автор

Last few minutes of video, I think that you should have performed some operation inside map but you simple printed it, but thank you

sumitgoyal
Автор

Thanks for this video. It's helpful.

jajatisahoo
Автор

The video explains the concept in more understandable form than any other articles in recent past. Yet I would like to know how Streams and the methods are internally working. Is Java really implementing some optimized logic better regular coding or compiler writing regular code internally on behalf us, just for reducing the redundant code?. IS Stream really faster than regular approach?

karuppaiyansubashchandrabo
Автор

Question were very very basic pls try to add a bit complex Qs after 1, 2 regular Qs. Because in interviews we were not asked this much basic QS

poojasharma-ccur
Автор

Hi Sir,
I want to correct two things. your way of teaching is nice.
1. map-> It takes function as argument Returns a stream consisting of the results of applying the given function to the elements of this stream.
2. In this program there is no need of map(). we can do directly using filter only.

Output-
30000
40000
50000
Kindly look into it.

tabishrizwan
Автор

Thanks for this video. It's helpful. Is Map and Foreach methods are same?. Because I see both of them can be used to print the list objects

ananthshenoy
Автор

Everything is good sir
Bt one doubt
What if I want to save the modified employee list instead of list<integer>

sanathrayala
Автор

Is there video on Optional class java 8 feature ?

Hari_Goud
Автор

Send keys functionality not working in my appium program.how to send the data into text field

rameshdharnasi
Автор

Hi Sir can ou help me out in this logic?
Create Person class that contains first name, last name, and ID.
- Create a getCommonLastNames() method with that takes List<> as a parameter.
- The method should return a Map<String, List<String>>
whereby the key is the common last name and the value is the list of firstnames of people that share the same last name.

i can do this...
Map<String, String > Map8 = Person1.stream().collect(Collectors.toMap(Person::getFirstName, Person::getLastName));
Map<String, String > Map8 = Person1.stream().filter(f->f.FirstName==f.LastName).collect(Collectors.toMap(Person::getFirstName, Person::getLastName));

ramupanjala
Автор

Hi sir, after filtering based on Salary, i want to update the salary by increasing 10 percent and return complete employe objects, how can i achieve this

sureshgarine
Автор

Thanks Sir... Please make videos on dot net.

alpeshmarchande
welcome to shbcf.ru