if (auxInt != 0) { String value = new DecimalFormat("#0.0").format(acc / auxInt); infoClassification.setAritmeticClassification(value); } infoClassification.setCompletedCourses(new Integer(auxInt).toString()); return infoClassification; }
	private InfoClassification getInfoClassification(List enrollments) {		InfoClassification infoClassification = new InfoClassification();		int auxInt = 0;		float acc = 0;		float grade = 0;		for (Iterator iter1 = enrollments.iterator(); iter1.hasNext();) {			Enrolment enrollment = (Enrolment) iter1.next();			List enrollmentEvaluations = enrollment.getEvaluations();			EnrolmentEvaluation enrollmentEvaluation = null;			if (enrollmentEvaluations != null && !enrollmentEvaluations.isEmpty()) {				enrollmentEvaluation = (EnrolmentEvaluation) Collections.max(enrollmentEvaluations);			}			String stringGrade;			if (enrollmentEvaluation != null) {				stringGrade = enrollmentEvaluation.getGrade();			} else {				stringGrade = "NA";			}			if (stringGrade != null && !stringGrade.equals("") && !stringGrade.equals("RE")					&& !stringGrade.equals("NA") && !stringGrade.equals("AP")) {				Float gradeObject = new Float(stringGrade);				grade = gradeObject.floatValue();				acc += grade;				auxInt++;			}		}		if (auxInt != 0) {			String value = new DecimalFormat("#0.0").format(acc / auxInt);			infoClassification.setAritmeticClassification(value);		}		infoClassification.setCompletedCourses(new Integer(auxInt).toString());		return infoClassification;	}