Question : how to check if a hashmap is a subset of another
Answered by : hera-aijaz
h2.entrySet().containsAll(h1.entrySet()) //returns true if h1 is a subset of h2
Source : | Last Update : Sat, 06 Aug 22
Answered by : hera-aijaz
h2.entrySet().containsAll(h1.entrySet()) //returns true if h1 is a subset of h2
Source : | Last Update : Sat, 06 Aug 22