У меня не вызывает? Метод main должен вызывать метод start у объекта типа TestThread.
Метод main должен вызывать метод interrupt у объекта типа TestThread.
package com.javarush.task.task16.task1618;
/*
Снова interrupt
*/
public class Solution {
public static void main(String[] args) throws InterruptedException {
Thread t = new Thread(new TestThread());
t.start();
t.interrupt();
Thread current = Thread.currentThread();//Add your code here - добавь код тут
}
//Add your code below - добавь код ниже
public static class TestThread extends Thread implements Runnable{
TestThread testThread=new TestThread();
@Override
public void run() {
testThread.run();
}
}
}