Change Hashtable to HashMap and Vector to ArrayList.