@@ -0,0 +1,1157 @@
+import java.io.*;%0Aimport java.net.URL;%0Aimport javax.sound.sampled.*;%0A   %0A%0Apublic enum SoundEffect %7B%0A   EAT(%22fart.wav%22),  %0A   FART(%22hugefart.wav%22),%0A   DIE(%22die.wav%22);        %0A    %0A   %0A%0A   public static enum Volume %7B%0A      MUTE, LOW, MEDIUM, HIGH%0A   %7D%0A   %0A   public static Volume volume = Volume.LOW;%0A   %0A   %0A   private Clip clip;%0A   %0A   %0A   SoundEffect(String soundFileName) %7B%0A      try %7B%0A         %0A         URL url = this.getClass().getClassLoader().getResource(soundFileName);%0A         %0A         AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(url);%0A         %0A         clip = AudioSystem.getClip();%0A         %0A         clip.open(audioInputStream);%0A      %7D catch (UnsupportedAudioFileException e) %7B%0A         e.printStackTrace();%0A      %7D catch (IOException e) %7B%0A         e.printStackTrace();%0A      %7D catch (LineUnavailableException e) %7B%0A         e.printStackTrace();%0A      %7D%0A   %7D%0A   %0A   %0A   public void play() %7B%0A      if (volume != Volume.MUTE) %7B%0A         if (clip.isRunning())%0A            clip.stop();   %0A         clip.setFramePosition(0); %0A         clip.start();     %0A      %7D%0A   %7D%0A   %0A   %0A   static void init() %7B%0A      values(); %0A   %7D%0A%7D%0A

Create SoundEffect.java