Description: //4, the design for the interrupt job.// Requirements:// (1) create a thread, so that the constant thread prints a string (every 0.5 seconds to print a string)// (2) when the thread starts 2 seconds after the calling thread' s interrupt method , so that the thread is no longer print string and exit the thread// (used isInterrupted () method to determine whether to call the interrupt method to control the thread' s exit)
To Search:
File list (Check if you may need any files):
InterruptTest2.java