Guest User

Untitled

a guest
Oct 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. if (myMap.keyset().contains(someKey)) { /*do stuff*/ }
  2.  
  3. Set<KeyType> keys = myMap.keyset().clone();
  4. // now manipulating the Set will not affect the Map
Add Comment
Please, Sign In to add comment