void (Vector v, Hashtable h) { Enumeration e = v.elements(); while (e.hasMoreElements()) { System.out.println(e.nextElement()); } Iterator i = v.iterator(); while (i.hasNext()) { System.out.println(i.next()); } e = h.elements(); while (e.hasMoreElements()) { System.out.println(e.nextElement()); } e = h.keys(); i = h.values().iterator(); while (i.hasNext()) { System.out.println(i.next()); } }