How to check if a value exists in between a key and its value in hash table?
I want to check if a value is present in hash table or in between any of the key and its value
I used the following code to check if a value is present as a key or value
if(table.containsKey(val) || table.containsValue(val))
But how to check if it is present in between any of the key and its corresponding value?