Enumeration e = termins.elements();
while (e.hasMoreElements()) {
System.out.println("Terminplan ist" + ": " + e.nextElement());
for(int i=0; i<termins.size();i++){
if(termins.get(i).equals(termin.get(i+1)){
count++;
}
}
for(int i=0; i<termins.size();i++){
if(termins.get(i).equals(termin.get(i+1)){
import java.util.Iterator;
...
Object curElement;
for (Iterator itr = termins.iterator(); itr.hasNext(); ) {
curElement = itr.next();
}