import java.util.Arrays;

/**
 * This class is just used for testing the ArrayReader class,
 * and should be discarded.
 * 
 * @author David Matuszek
 */
public class ArrayReaderTest {
    
    /**
     * Gets the getArray() method of the ArrayReader class
     * and prints the results. Discard this method.
     * 
     * @param args Unused.
     */
    public static void main(String[] args) {
        int[][] array = ArrayReader.getArray();
        printArray(array);
    }

    /**
     * Prints the given two-dimensional array of ints. You can
     * keep this method and use it in your own projects if you like.
     * 
     * @param array The array to be printed.
     */
    private static void printArray(int[][] array) {
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.format("%5d ", array[i][j]);
            }
            System.out.println();
        }
    }
}
