while(enum.hasMoreElements())
{
          h=new Hashtable();
          h=(Hashtable)enum.nextElement();

          System.out.println(""+h.get("1"));
}

解决方案 »

  1.   

    Enumeration enum=vt.elements();
    while(enum.hasMoreElements())
    {
                           Hashtable hs = (Hashtable)enum.nextElement();
                           Enumeration  keys = hs.keys();
                           while(keys.hasMoreElements())
                          {
                            String key = (String)keys.nextElement();
                            String value = (String)hs.get(key);
                            }
    }这样就可以吧你所有存储的都取出来了!