====================
Sets Keysin Hash Map
====================

Question
========

ADDQUESTION

Solution
========

.. literalinclude:: ../../languages/java/SetsKeysinHashMap.java
   :language: java
   :tab-width: 4

.. runcode:: ../../languages/java/SetsKeysinHashMap.java
   :language: java
   :codesite: ideone

Explanation
===========




.. git_changelog::


.. seealso::

   * :java-suggest-improve:`SetsKeysinHashMap.java`
   * :java-better-explain:`SetsKeysinHashMap.rst`


=====================
Sets Keys in Hash Map
=====================

Question
========

Demonstrate the Set types as keys in Hashmap.

Solution
========

.. literalinclude:: ../../languages/java/SetsKeysinHashMap.java
   :language: java
   :tab-width: 4

.. runcode:: ../../languages/java/SetsKeysinHashMap.java
   :language: java
   :codesite: ideone

Explanation
===========

Sets can be used as  keys in Hashmap. The example demonstrates this feature.



.. git_changelog::


.. seealso::

   * :java-suggest-improve:`SetsKeysinHashMap.java`
   * :java-better-explain:`SetsKeysinHashMap.rst`


Set as Keys in Hashmap
Set as Keys in Hashmap