public void output(PrintWriter out){
  Element element=null;
  Enumeration<Element> data=ec.elements();
  while (data.hasMoreElements()) {
    element=data.nextElement();
    element.output(out);
  }
}

public void output ( PrintWriter out ) { Element element = null ; Enumeration < Element > data = ec . elements ( ) ; while ( data . hasMoreElements ( ) ) { element = data . nextElement ( ) ; element . output ( out ) ; } }
implements the output method in element
