Hello everybody,
I absolutely can't find the reason why my program doesn't quit.
It is one of the examples in the book 'Head First
Java'.
This is 'my' code:
Everything seems to work fine, it plays the sound as expected and obviously also jumps back to main, because the terminal also shows the message which I have entered for debugging, 'System.out.println("after mini.play");' at the end of main.
But then - the program never quits and the terminal stands there waiting forever.
The problem occurs on my Ubuntu Linux computer as well as on another one with XP on it. For this reason I think that I made a mistake which I am simply not able to find.
What did I do wrong?
Cheers,
Oliver