void table2(){
        for (int j = 1; j <= 10; j++) {
            for (int i = 0; i < higherRows.length; i++) {
                int result = higherRows[i] * j;
                String mainCell = higherRows[i] + " x " + j + " = " + result;
                int spacesNumber = symbolsInCell - mainCell.length();
                String spaces = "";
                for (int k = 0; k < spacesNumber; k++) {
                    spaces += " ";
                }
                System.out.print(mainCell + spaces);
            }
            System.out.println();
        }

        System.out.println();

        for (int j = 1; j <= 10; j++) {
            for (int i = 0; i < lowerRows.length; i++) {
                int result = lowerRows[i] * j;
                String mainCell = lowerRows[i] + " x " + j + " = " + result;
                int spacesNumber = symbolsInCell - mainCell.length();
                String spaces = "";
                for (int k = 0; k < spacesNumber; k++) {
                    spaces += " ";
                }
                System.out.print(mainCell + spaces);
            }
            System.out.println();
        }
    }