Develop a Java application using NetBeans called ICFK-1200metersRace that will simulate a women’s K-1 200 metres race between Lisa Carrington and Danuta Kozákh. Your program must make use of threads to simulate the race. Create and start your threads in your main class. Your program must have a class called Athletes that implements the Runnable interface with a constructor that takes a String name which will be the athlete’s name. The Athletes class should have a run() method. This should simulate the times the athletes pass the 20-meter intervals. The run method should also allow a thread to sleep for a random interval of up to 3 seconds. After the run method has executed, the athlete’s name should be output to the screen to simulate that they have finished the race.
Develop a Java application using NetBeans called ICFK-1200metersRace that will simulate a
women’s K-1 200 metres race between Lisa Carrington and Danuta Kozákh. Your program must
make use of threads to simulate the race. Create and start your threads in your main class. Your
program must have a class called Athletes that implements the Runnable interface with a
constructor that takes a String name which will be the athlete’s name. The Athletes class
should have a run() method. This should simulate the times the athletes pass the 20-meter
intervals. The run method should also allow a thread to sleep for a random interval of up to 3
seconds. After the run method has executed, the athlete’s name should be output to the screen
to simulate that they have finished the race.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)