I tak se dá:
int[] a = new int[1000];
try {
for (int i=0; ; i++) { // No range check.
a[i] = i;
}
} catch (ArrayIndexOutOfBoundsException e) {
// do something cool
}
Hernajs, MaSo, neexhumuj... (mif)
I tak se dá:
int[] a = new int[1000];
try {
for (int i=0; ; i++) { // No range check.
a[i] = i;
}
} catch (ArrayIndexOutOfBoundsException e) {
// do something cool
}