Как убрать строку сразу после таблицы java код

Есть таблица внутри программы Сразу под ней - две строки. Одну из них нужно убрать. Не могу это сделать самостоятельно

 int result = -1;
        int n = field.length;
        int maxId = n - 1;
        int step = 0;
        while (step <= 9) {
            System.out.println();
            System.out.println("Player " + currentPlayer + " (" + currentSymbol + ") turn." +
                    " Enter column and row (between 1 and 3):");
            if (!scanner.hasNextLine()) {
                break;
            }
            String line = scanner.nextLine();
            Cell cell = parseMove(line);
            if (cell == null) {
                System.out.println("Incorrect input..");
                continue;
            }
            if (field[cell.row - 1][cell.col - 1] != ' ') {
                System.out.println("Cell should be empty..");
                continue;
            }
            field[cell.row - 1][cell.col - 1] = currentSymbol;
            System.out.println();
            for (int i = 0; i < 3; i++) {
                for (int j = 0; j < 3; j++) {
                    if (j == field[i].length - 1) {
                        System.out.print(" " + field[i][j] + " " + " ");
                    } else {
                        System.out.print(" " + field[i][j] + " " + "┃");
                    }
                }
                System.out.println();
                for (int T = 0; T < field.length; T++) {
                    if (i == field[T].length - 1) {
                        System.out.print(" " + " " + " " + " ");
                    } else if (T == field[i].length - 1) {
                        System.out.print("━" + "━" + "━" + " ");
                    } else {
                        System.out.print("━" + "━" + "━" + "╋");
                    }
                }
                System.out.println();
            }

Это кусок кода с таблицей.

Должно быть вот так: карт1

А у меня вот так: карт2

Не знаю как убрать под таблицей серую строку - ее нужно убрать...(( помогите пож..


Ответы (0 шт):