Let's talk music

  • 9
  • Locked
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.
You can't complete this task, because you're not signed in.
Comments (4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Aakankasha Sharma
Level 18 , Chandigarh, India
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, 04:41
look at Date's methods
iqbalhussain
Level 22 , Peshawar, Pakistan
28 September 2018, 09:15
Problem in this task the code gives right answer in netbeans but here Player is starting to play. why?
Devonte A
Level 18 , Rubery, United Kingdom
15 July 2020, 09:43
Possibly because whenever the methods are called the system print line will be called aswell.