public static int[][] readIntMatrix() {
        while (true) {
            String[] lineTokens = readString().split("/");

            if (lineTokens.length > 1) {
                String[][] tokens = new String[lineTokens.length][];
                int columns = 0;

                for (int line = 0; line < lineTokens.length; line++) {
                    tokens[line] = lineTokens[line].split(",");

                    if (tokens[line].length > columns) {
                        columns = tokens[line].length;
                    }
                }

                if (columns > 0) {
                    int[][] array = new int[lineTokens.length][columns];

                    try {
                        for (int line = 0; line < tokens.length; line++) {
                            for (int column = 0; column < tokens[line].length;
                                 column++) {
                                array[line][column] =
                                    Integer.parseInt(tokens[line][column]);
                            }
                        }

                        return array;
                    } catch (NumberFormatException e) {
                        System.err.println(ERROR_INVALID_INT);
                    }
                } else {
                    System.out.println(ERROR_EMPTY_LINE);
                }
            } else {
                System.out.println(ERROR_ONE_LINE_ARRAY);
            }
        }
    }