This Java class will help you to work on matrixes as if they were a lists. You already know that a matrix is just a list of lists. However, this remark can be very benefical if you knew how to avail yourself of it. This example will help you to do so. In this example you will find various methods that allow you to run through a matrix as if it was a list. Indeed, this may be helpful in case of simple competitive programming problems that involve matrixes or 2D spaces processing.
If you were interested in an example of implementation of this class, you can check this solution for a 2D 8 * 8 space problem , and the problem