Ругается на 36 строку
package com.javarush.task.task16.task1629;
import java.io.BufferedReader;
import java.io.InputStreamReader;
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();
System.out.println(t1.getString());
System.out.println(t2.getString());
}
public static class Read3Strings extends Thread {
String one, two, three;
public Read3Strings(){
}
@Override
public void run()
{
try{
one = reader.readLine();
two = reader.readLine();
three = reader.readLine();
}catch (InterruptedException e)
{
}
}
public String getString(){
return one + " " + two + " " + three;
}
}
}