I have a List<Object> that contains Objects with Key Value pairs.
I want to loop through and if a Key value contains a certain Value. I want to pull that object and create a new List<Object> with only those values. How could i do this?
for (int i = 0; i < dbResults.size(); i++) {
Map<String, Object> map = (Map<String, Object>) dbResults.get(i);
for (String key : map.keySet()) {
System.out.println("Key: " + key + " maps to value: " + map.get(key));
}
}
