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
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers
- Java – DoubleToLongFunction Interface
- Java – HashSet Class
- Java – ThreadPoolExecutor.CallerRunsPolicy Class
- Java ArrayList addAll(int index, Collection extends E> c) method with example
- Java – SimpleTimeZone Class
- Java – GregorianCalendar Class
- Java – CharSequence Interface
- Java LinkedHashSet spliterator() method with example
- Java ArrayList spliterator() method with example
- Java – Vector Class
- Java – Locale.Builder Class
- Java ArrayList set() method with example
- Java – DoubleSupplier Interface
- Java – TransferQueue Interface
- Java – ScheduledFuture Interface
Leave a Reply
You must be logged in to post a comment.