Почему после ввода первой строки выдает ошибки? Валидатор все принял!!! Но как работает я так и не увидел. public class Solution { public static volatile BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws InterruptedException { Read3Strings t1 = new Read3Strings(); Read3Strings t2 = new Read3Strings(); t1.start(); t1.join(); t2.start(); t2.join(); //add your code here - добавьте код тут t1.printResult(); t2.printResult(); } public static class Read3Strings extends Thread{ String s1, s2, s3; public void run() { try { if (reader.ready()) { s1 = reader.readLine(); s2 = reader.readLine(); s3 = reader.readLine(); } } catch (IOException e) { e.printStackTrace(); } } public void printResult(){ System.out.println(s1 + " " + s2 + " " + s3); } }//add your code here - добавьте код тут }