Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

comparing the keysets of two hashmaps

807599May 2 2007 — edited May 2 2007
hi ..

Please let me know if i use the following :

(hashmap1.keyset().equals(hashmap2.keyset())) return true;

would it return true always ...the keysets always being Strings in the case...i mean would it always check if all the keys are present in both the keysets..???

thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2007
Added on May 2 2007
2 comments
124 views