The
Dictionary class is the abstract parent of classes like Java Hashtable, which maps keys to values. Every key and every value is an object. In any one Dictionary object, every key is associated with at most one value.
Dictionary Constructor:
Dictionary Methods:
Dictionary CODE import java.util.Dictionary; OUTPUT The dictionary contains : {5=Om, 4=Amar, 2=Santosh, 8=Nishan, 7=Ram} DESCRIPTION In this program, a dictionary is created by using THINGS TO TRY
|