question: SwitchDataEnumeration ( Hashtable < Integer , Label > tab ) { table = new Integer [ tab . size ( ) ] ; int i = 0 ; for ( Enumeration < Integer > e = tab . keys ( ) ; e . hasMoreElements ( ) ; ) { table [ i ++ ] = e . nextElement ( ) ; } Arrays . sort ( table ) ; current_index = 0 ; }
target:  Create a new enumeration from the hashtable.  Each key in the hash table will be an Integer, with the value being a label.  The enumeration returns the keys in sorted order.