ProAnswers.org

What Are the different Collection Views That Maps Provide?

Maps Provide Three Collection Views.

• Key Set - allow a map’s contents to be viewed as a set of keys.

• Values Collection - allow a map’s contents to be viewed as a set of values.

• Entry Set - allow a map’s contents to be viewed as a set of key-value mappings.