// Each non-nill element should have a value that is i + 10*j + 100*k
// Add 1000 to each correct value encountered.
for (int i=0; i < in.length; i++) {
Foo[][] array2 = in[i];
if (array2 != null)
for (int j=0; j < array2.length; j++) {
Foo[] array3 = array2[j];
if (array3 != null)
for (int k=0; k <array3.length; k++) {
if (array3[k].getValue() == i + 10*j + 100*k)
array3[k].setValue(i + 10*j + 100*k + 1000);
}
}
}
return in;