Exceptional for loop

From AWiki

Jump to: navigation, search


final AClass[] aggregate = ... ;
try {
 	for(i = 0; true; i++) {
 	 	// do something with aggregate[i]
 	}
} catch(ArrayIndexOutOfBoundException e) {
}
Personal tools