My code is in java . When I debugged I found out that containsKey function is returning true even if Hashmat is empty.
Can you pls let me know the reason
My code is in java . When I debugged I found out that containsKey function is returning true even if Hashmat is empty.
Can you pls let me know the reason
no see this:
hashmap returns false when its empty
you had a stray ; after ‘if(hm.containsKey(i))’