List infoTeacherDegreeFinalProjectStudentList = e.getInfoTeacherDegreeFinalProjectStudentList(); Iterator iterator = infoTeacherDegreeFinalProjectStudentList.iterator(); StringBuffer teacherArgument = new StringBuffer(); StringBuffer percentageArgument = new StringBuffer(); while (iterator.hasNext()) { InfoTeacherDegreeFinalProjectStudent infoTeacherDegreeFinalProjectStudent = (InfoTeacherDegreeFinalProjectStudent) iterator .next();
StringBuffer result = new StringBuffer(); final List<InfoTeacherDegreeFinalProjectStudent> infoTeacherDegreeFinalProjectStudentList = e .getInfoTeacherDegreeFinalProjectStudentList(); for (final InfoTeacherDegreeFinalProjectStudent infoTeacherDegreeFinalProjectStudent : infoTeacherDegreeFinalProjectStudentList) {
    private Object[] getStudentPercentageExceedArgs(StudentPercentageExceed e) {        List infoTeacherDegreeFinalProjectStudentList = e.getInfoTeacherDegreeFinalProjectStudentList();        Iterator iterator = infoTeacherDegreeFinalProjectStudentList.iterator();        StringBuffer teacherArgument = new StringBuffer();        StringBuffer percentageArgument = new StringBuffer();        while (iterator.hasNext()) {            InfoTeacherDegreeFinalProjectStudent infoTeacherDegreeFinalProjectStudent = (InfoTeacherDegreeFinalProjectStudent) iterator                    .next();            InfoTeacher infoTeacher = infoTeacherDegreeFinalProjectStudent.getInfoTeacher();            Integer teacherNumber = infoTeacher.getTeacherNumber();            String teacherName = infoTeacher.getInfoPerson().getNome();            teacherArgument.append(teacherNumber).append("-").append(teacherName);            percentageArgument.append(infoTeacherDegreeFinalProjectStudent.getPercentage()).append("%");            if (iterator.hasNext()) {                teacherArgument.append(", ");                percentageArgument.append(", ");            }        }        Object arguments[] = { teacherArgument.toString(), percentageArgument.toString() };        return arguments;    }