Relative Content

Tag Archive for javaarraylisthashmap

from array<HashMap> ,get HashMap which key is equal to a given string [duplicate]

This question already has answers here: How do I compare strings in Java? (23 answers) Ways to iterate over a list in Java (13 answers) Closed 5 mins ago. I want to query out a hashmap which it’s key(hashmap.getKey(“id”)) is equal to a string (“userid”) from arraylist.I am using the following method. for (i=0,i < […]