Java – Dictionary Class

Java Dictionary Class methods, constructors, variables available in Java 8 release are listed below. We will publish example program on each methods ASAP.

Constructors in Java Dictionary Class

S.No Constructor & Description
1 Dictionary()

Sole constructor.

Methods in Java Dictionary Class

S.No Method & Description
1 abstract Enumeration<V> elements()

Returns an enumeration of the values in this dictionary.
2 abstract V get(Object key)

Returns the value to which the key is mapped in this dictionary.
3 abstract boolean isEmpty()

Tests if this dictionary maps no keys to value.
4 abstract Enumeration<K> keys()

Returns an enumeration of the keys in this dictionary.
5 abstract V put(K key, V value)

Maps the specified key to the specified value in this dictionary.
6 abstract V remove(Object key)

Removes the key (and its corresponding value) from this dictionary.
7 abstract int size()

Returns the number of entries (distinct keys) in this dictionary.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java – DoubleToLongFunction Interface
  2. Java – HashSet Class
  3. Java – ThreadPoolExecutor.CallerRunsPolicy Class
  4. Java ArrayList addAll(int index, Collection c) method with example
  5. Java – SimpleTimeZone Class
  6. Java – GregorianCalendar Class
  7. Java – CharSequence Interface
  8. Java LinkedHashSet spliterator() method with example
  9. Java ArrayList spliterator() method with example
  10. Java – Vector Class
  11. Java – Locale.Builder Class
  12. Java ArrayList set() method with example
  13. Java – DoubleSupplier Interface
  14. Java – TransferQueue Interface
  15. Java – ScheduledFuture Interface

Be the first to comment

Leave a Reply