for (MessageArray.Iterator it = iterator (); it.hasNext ();) {
Factor msg = (Factor) it.next ();
Object from = it.from ();
Object to = it.to ();
out.println ("Message from " + from + " to " + to);
out.println (msg.dumpToString ());
}
}
public final class Iterator implements java.util.Iterator
{