Hi,
"Only Map has values() method. This method returns a Set of values stored in the Map.".
This is not correct. values() returns a Collection of values, presumably because values can be duplicated in a Map (hence the need for a Collection of values), whereas keys cannot. Hence keySet and entrySet return a Set of keys and entries respectively.
Cheers
About Question enthuware.ocpjp.v7.2.1293 :
Moderators: Site Manager, fjwalraven
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1293 :
You are right. This has now been fixed.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 4 guests