import org.junit.Test;

public class SleepTest {
    @Test
    public void name() throws InterruptedException {
        new Thread(new Runnable() {
            public void run() {
                System.out.println(Thread.currentThread().getName()+" task completed");
            }
        }).start();
        Thread.sleep(1000);
        System.out.println(Thread.currentThread().getName()+" exit ");
    }



}
{'avg_line_length': 24.176470588235293, 'max_line_length': 87, 'alphanum_fraction': 0.5742092457420924, 'licenses': ['MIT'], 'repository_name': 'LuckyP86H/My-Java-Course', 'path': 'week4-java-concurrency/src/test/java/SleepTest.java', 'size': 411, 'lang': 'Java'}