i have this arrayalist:
ArrayList<HashMap<String, String>> contactListad
it contains:
[{emailAddress=samir, lastName=samir, contactId=4, phoneNumber=6449494, firstName=samir, homeAddress=paris}, {emailAddress=, lastName=, contactId=6, phoneNumber=, firstName=Rashad, homeAddress=las vegas}, {emailAddress=, lastName=, contactId=9, phoneNumber=, firstName=joe, homeAddress=paris}]
My question iy ifs how can i get the values and store them in another arraylist i want to specify to store only the values having a certain homeAddress equals paris for example. i hope my question is clear enough
for example if i specify the homeAddress to be paris, i want the output to be an arraylist containing
[{emailAddress=samir, lastName=samir, contactId=4, phoneNumber=6449494, firstName=samir,
homeAddress=paris},{emailAddress=, lastName=, contactId=9, phoneNumber=, firstName=joe,
homeAddress=paris}]
so without the hasmap that has homeAddress equals las vegas
Thank you