📜  在你的框架中,你在哪里使用 Set、HashMap、List? - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:43.138000             🧑  作者: Mango

代码示例1
Set whenever we want to get the uniqe option from the dropdown.
Or whenever we want to handle multiple tabs such as getwindowhandles.
HashMaps data from 2 columns from tables. 
If you want to get a data from Json file, properties file. 
HashMap is for pair of data. You can get the data from JSON or properties files. POJO Class. Key and value for.
What is different between list and set. 
Set does not accept duplicates. List takes duplicates.
And index number different.