What you are looking for is the Command pattern: define a single-method interface and implement it for each use case as an anonymous class. You'll pass an instance of this interface to a method which does all the boilerplate and calls your method just for the interesting part:
public void forAllMembers(Foo[][] fooArray, Command c) {
for (int i = 0; i < fooArray.length; i++) {
for (int j = 0; j < fooArray[i].length; j++) {
c.execute(fooArray[i][j]);
}
}
}
Or, wait for Java 8, which will introduce Lambdas and will give your problem a first-class solution!