+ 1
How can we use containsKey and containsValue méthodes? With a if condition?
2 Answers
+ 2
just use map.containsKey(key) for key search and map.containsValue(value) for value search. Both are boolean type will return true if value is present and vice-versa.
0
thanks ;-)