Iterator it = iterator();  while ( it.hasNext() )
for ( QuestionRecord question:questionRecords )
    public String toString()    {        StringBuffer sb = new StringBuffer();        Iterator it = iterator();        while ( it.hasNext() )        {            QuestionRecord question = ( QuestionRecord ) it.next();            sb.append( "\n\t" + "dnsName                    " + question.getDomainName() );            sb.append( "\n\t" + "dnsType                    " + question.getRecordType() );            sb.append( "\n\t" + "dnsClass                   " + question.getRecordClass() );        }        return sb.toString();    }