public static void main(String[] args) {
        int length = Integer.parseInt(JOptionPane.showInputDialog("Input the table  Dimension"));
        int intArray[][] = new int[length][length];
        Random generator = new Random();
        for (int i = 0; i < length; i++) {
            for (int j = 0; j < length; j++) {
                intArray[i][j] = generator.nextInt(8);
            }
        }
        JOptionPane.showMessageDialog(null, "Take a look at the console!");
        outputTable(intArray);
        tableSort(intArray);
    }