#13 - How to convert HashMap to ArrayList in Java? - Naveen AutomationLabs

preview_player
Показать описание
In this video, I have explained how to convert : HashMap to ArrayList.
We can create a list of all the keys and values of HashMap individually, which can be used for further validation.

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:

Рекомендации по теме
Комментарии
Автор

Adding to this, for printing both key and values in ArrayList are :
List<Map.Entry<String, Integer>> ls3 = new ArrayList<Map.Entry<String, Integer>>(hamp.entrySet());
System.out.println("Key and values of List are " + ls3);

vijaykumar-pdzi
Автор

Thank you very much Naveen! I am refresher got a very understanding of Collections after reviewing you Useful Videos.

qaisqais
Автор

Your way to teach is really awesome..it is helping me allot to learn new concepts..

funwithcooking
Автор

Thank you naveen.. all your videos are very useful..

vaishnavis
Автор

Thanks for the video Naveen 👍, the covered topic make things easy in different use cases while coding 😊😊

SarangHoley
Автор

List<String> compNamesList =

I think we can add this way of converting keyset/value to list as well by the help of collect method of jdk 1.8

mertm
Автор

Love your content. It's incredibly helpful. Absolutely had to join!

joshbenjamin
Автор

Hi Naveen, all ur videos are really helpful and easy to understand ur way of explanation is very clear and crystal.
Have small doubt in this program, have given company names in Key Google, Amazon, CISCO, but when printing in console it is not printing in same order it is getting shuffled can u pls explain the logic on that ?

vivekaanand
Автор

I need your help I am trying to collect two algorithms the first use hashmap and second use arraylist I want to put hashmap results and use them in second algorithm

sarahfatima
Автор

Hi Naveen
I need to compare two csv excel file row by row for both excel file using this method and display the data of a perticular row which is not matched.

So, Can you pls help me on that.

shashikant-yybm
Автор

I have some questions. I know selenium with java. But for an automation tester with 3yrs experience, what all skills they will expect? REST API better to learn? what about Jira tool and Agile methodology? Anything else need to learn? POSTMAN enough or SOAP UI required? I have seen CI/CD Jenkins etc in some job details. Do I need to know that for automation testing?

akshaymg
Автор

can u create a video with HashMap key is a string(student name) and value is an object, object referring to another student information(school name, address, phone number)?

sureshgarine