You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the [keySet][map-keyset-javadoc] or [values][map-values-javadoc] methods to obtain the keys or the values in a Map as a Set or collection respectively.
60
60
61
61
```java
62
-
fruitPrices.keySet(); // Returns "apple" and "pear" in a set
62
+
fruitPrices.keySet(); // Returns "apple" and "pear" in a set
63
63
fruitPrices.values(); // Returns 100 and 80, in a Collection
0 commit comments