Code example for Hashtable

0
    private Vector names = new Vector();
     
    /** 
     * Pairs keyed by the description. 
     */ 
    private Hashtable keyedByString = new Hashtable();
     
    /** 
     * Pairs keyed by the integer value. 
     */ 
    private Hashtable keyedByInteger = new Hashtable();
     
    /** 
     * The default if no choice is initially specified.  Sub-classers 
     * shouldn't rely on this and should call setDefaultChoice in their 
     * static initializer. 
     */ 
    private int defaultChoice = 0;
     
    /**