ПОЧЕМУ У МЕНЯ НЕ ПОЛУЧАЛОСЬ
public static void main(String[] args) throws InterruptedException {
//Add your code here - добавь код тут
TestThread test = new TestThread();
test.interrupt();
}
//Add your code below - добавь код ниже
public static class TestThread extends Thread{
public TestThread(){
start();
}
@Override
public void run() {
super.run();
}
}
}
Mick
22 уровень
получилось по одному, не получилось по другому ПОЧЕМУ?
Обсуждается
Комментарии (2)
- популярные
- новые
- старые
Для того, чтобы оставить комментарий Вы должны авторизоваться
DeadDenne
12 ноября 2019, 20:40
По заданию Вы должны вызвать старт не при создании (в конструкторе), а непосредственно в мэйне
0
IceBergMaster
29 августа 2019, 14:09
"Метод main должен вызывать метод start у объекта типа TestThread"
0