Just style here: underscores in variable names are not standard in Java. matrixRunResult would probably be better. http://en.wikipedia.org/wiki/Naming_convention_%28programming%29#Java