Question: JAVA PROGRAM This assignment must use the runnable interface to implements threads that represent singers The singer's singing will be simulated by displaying the each

JAVA PROGRAM  JAVA PROGRAM This assignment must use the runnable interface to implements

This assignment must use the runnable interface to implements threads that represent singers The singer's singing will be simulated by displaying the each line of the songs lyrics. The project must have the following components package threadRunnablelnterfacePackage SingersClass, java SongLyricsClass, java ThreadRunnableInterfaceMainClass.iava In the SingersClass java: Implement the run method that represents each singer. In this method design a loop that the singer uses to sing the song. Create a class for the song lyrics SongLyricsClass, java Have a Sting array that has the song's lyrics. Have an accessor synchronized get method to get each line of the song array by requesting the line no Have an accessor get method to get the total number of lines in the song. You must include a couple of stanzas of your favorite song lyrics that you choose. Thread RunnablelnterfaceMainClassjava: Use spate 6 singers to test the program. In a loop, have each singer start singing. Display a message when the loop is done. Display a message when the main program is done For a reference solution to help you with the program development, see the jpeg files

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!