підкажіть, що не так? Результат типу правильний package com.javarush.task.task16.task1630; import java.io.*; import java.util.Scanner; /* Последовательный вывод файлов */ public class Solution { public static String firstFileName;// = "C:\\DiskD\\test\\tests_28-10-2023\\test1.txt"; public static String secondFileName;// = "C:\\DiskD\\test\\tests_28-10-2023\\test2.txt"; //напишите тут ваш код static { firstFileName = new Scanner(System.in).nextLine(); secondFileName = new Scanner(System.in).nextLine(); } public static void main(String[] args) throws InterruptedException { systemOutPrintln(firstFileName); systemOutPrintln(secondFileName); } public static void systemOutPrintln(String fileName) throws InterruptedException { ReadFileInterface f = new ReadFileThread(); f.setFileName(fileName); f.start(); f.join(); System.out.println(f.getFileContent()); } public interface ReadFileInterface { void setFileName(String fullFileName); String getFileContent(); void join() throws InterruptedException; void start(); } //напишите тут ваш код public static class ReadFileThread extends Thread implements ReadFileInterface { private String fullFileName; private String textContent = ""; @Override public void setFileName(String fullFileName) { this.fullFileName = fullFileName; } @Override public String getFileContent() { return this.textContent; } @Override public void run() { try (BufferedReader fileReader = new BufferedReader(new FileReader(fullFileName))){; while (!fileReader.ready()) { this.textContent += fileReader.readLine() + " "; } } catch (FileNotFoundException e) { throw new RuntimeException(e); } catch (IOException e) { throw new RuntimeException(e); } } } }