while (e.hasMoreElements()) {
while (e != null && e.hasMoreElements()) {
    public static Collection collectionFromEnumeration(Enumeration e) {        Vector v = new Vector();        while (e.hasMoreElements()) {            v.addElement(e.nextElement());        }        return v;    }