Matrices and higher dimensional arrays

This is relatively straightforward. For example, look at the following Java program Matrix.java