Being a noob myself, I dislike the way java uses sounds; its way to complex especially for beginners. Normally, a novice game developer wants to know as much about the way sounds work as a sea turtle about life on Mars. So i made my own Sound library-thing that can play, loop and stop .ogg, .wav, .au, and .mid sounds without any brain busting. Example:
Sound sound1=new Sound("theme.mid"), sound2=new Sound("explosion.ogg"),sound3=new Sound("shotgun.wav");
sound1.loop();
sound2.play();
sound3.play();
...
sound2.stop();
...
Here is the zip folder:
http://www.4shared.com/file/38050158/561452c1/soundbox.html
All you have to do is put all the contents next to your .class files and it should work. Also works if u use a jar. You dont have to import anything or use try-catch blocks. I apologize if i massacred conventions of using packages, classes, etc or if this is not exactly “shared code”.