@@ -0,0 +1,1301 @@
+package mike.sound;%0A%0Aimport javax.sound.sampled.*;%0A%0Apublic class Sound %7B%0A%09%0A%09private Clip clip;%0A%09%0A%09// Change file name to match yours, of course%0A%09public static Sound sound1 = new Sound(%22/dankmusic.wav%22);%0A%09public static Sound sound2 = new Sound(%22/dankmusic.wav%22);%0A%09public static Sound sound3 = new Sound(%22/dankmusic.wav%22);%0A%09%0A%09public Sound (String fileName) %7B%0A%09%09try %7B%0A%09%09%09AudioInputStream ais = AudioSystem.getAudioInputStream(Sound.class.getResource(fileName));%0A%09%09%09clip = AudioSystem.getClip();%0A%09%09%09clip.open(ais);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%09public void play() %7B%0A%09%09try %7B%0A%09%09%09if (clip != null) %7B%0A%09%09%09%09new Thread() %7B%0A%09%09%09%09%09public void run() %7B%0A%09%09%09%09%09%09synchronized (clip) %7B%0A%09%09%09%09%09%09%09clip.stop();%0A%09%09%09%09%09%09%09clip.setFramePosition(0);%0A%09%09%09%09%09%09%09clip.start();%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D.start();%0A%09%09%09%7D%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void stop()%7B%0A%09%09if(clip == null) return;%0A%09%09clip.stop();%0A%09%7D%0A%09%0A%09public void loop() %7B%0A%09%09try %7B%0A%09%09%09if (clip != null) %7B%0A%09%09%09%09new Thread() %7B%0A%09%09%09%09%09public void run() %7B%0A%09%09%09%09%09%09synchronized (clip) %7B%0A%09%09%09%09%09%09%09clip.stop();%0A%09%09%09%09%09%09%09clip.setFramePosition(0);%0A%09%09%09%09%09%09%09clip.loop(Clip.LOOP_CONTINUOUSLY);%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D.start();%0A%09%09%09%7D%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public boolean isActive()%7B%0A%09%09return clip.isActive();%0A%09%7D%0A

Create Sound.java