Page 1 of 1

About Question enthuware.ocpjp.v7.2.1293 :

Posted: Sat Sep 28, 2013 10:57 am
by Student
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

Re: About Question enthuware.ocpjp.v7.2.1293 :

Posted: Sat Sep 28, 2013 1:31 pm
by admin
You are right. This has now been fixed.

thank you for your feedback!
Paul.