Vereinfachte For-Schleife

alt:

Collection<E> c = ... ;
for ( Iterator <E> it = c.iterator ()
    ; it.hasNext () ; ) {
    E x = it.next ();
    ...
}

neu:

Collection<E> c = ... ;
for ( E x : c ) {
    ...
}



Johannes Waldmann 2007-06-21