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
- 9
Locked
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Aakankasha Sharma
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?
0
Jonaskinny Java Developer at Sandmedia
10 March 2022, 04:41
look at Date's methods
0
iqbalhussain
28 September 2018, 09:15
Problem in this task the code gives right answer in netbeans but here
Player is starting to play. why?
0
Devonte A
15 July 2020, 09:43
Possibly because whenever the methods are called the system print line will be called aswell.
0