"Hello, Amigo!"

9
Task
Java Core,  level 6lesson 10
Locked
Counting seconds
1. Write an implementation for the run method in the Stopwatch thread. 2. The Stopwatch class must count the number of seconds that have passed from the creation of the thread until a string is entered. 3. Display the number of seconds.
18
Task
Java Core,  level 6lesson 10
Locked
Countdown at the races
1. Figure out what the program does. 2. Implement the run method so that each second the count is displayed, separated by spaces and starting from numSeconds down to 1, and then "Go!" (see the examples). 3. If the thread runs for 3.5 seconds or more, interrupt it using the interrupt method and wit
4
Task
Java Core,  level 6lesson 10
Locked
Another interruption
Create a TestThread. In the main method, create a thread, run it, and then interrupt it using the interrupt() method.
9
Task
Java Core,  level 6lesson 10
Locked
No interrupt, no dice?
Figure out how the program works. Make it so that the ourInterrupt method allows the TestThread to terminate itself. Don't use the interrupt method.
9
Task
Java Core,  level 6lesson 10
Locked
One for all, all for one
1. Figure out how the program works. 1.1. Note that the Water object is the same for all the threads. 2. Implement the ourInterrupt() method so that it interrupts all threads in the threads list. 3. Correct the values ​​of the variables in the run() method: 3.1. isCurrentThreadInterrupted must be the s