Even robotic programmers yearn for art! Today we're talking about bowed string instruments. We have a Violin class. You need to change it to make it a task for a thread. To do this, use the MusicalInstrument interface. And then you can "play" it and display how long you've been playing.
Let's talk music
You must be signed in to leave a comment
3 April 2021, 16:50
why does it specifically want us to use the date object being returned from the startPlaying and stopPlaying objects? Can't we use any other function like currentTimeMillis for this?
Jonaskinny Java Developer at Sandmedia
10 March 2022, 04:41
look at Date's methods
28 September 2018, 09:15
Problem in this task the code gives right answer in netbeans but here Player is starting to play. why?
15 July 2020, 09:43
Possibly because whenever the methods are called the system print line will be called aswell.