@@ -0,0 +1,996 @@
+package lockard;%0Aimport java.io.File;%0Aimport javax.sound.sampled.AudioInputStream;%0Aimport javax.sound.sampled.AudioSystem;%0Aimport javax.sound.sampled.Clip;%0Aimport javax.sound.sampled.DataLine;%0Aimport javax.sound.sampled.LineEvent;%0Aimport javax.sound.sampled.LineListener;%0Apublic class Sound %7B%0A    Thread tr = null;%0A%09public static Clip clip;%0A    public static synchronized void play(final String fileName) %0A    %7B            %0A        new Thread(new Runnable() %7B %0A            public void run() %7B%0A                try %7B%0A                     clip = AudioSystem.getClip();%0A                    AudioInputStream inputStream = AudioSystem.getAudioInputStream(new File(fileName));%0A                    clip.open(inputStream);%0A                    clip.start(); %0A                %7D catch (Exception e) %7B%0A                    System.out.println(%22play sound error: %22 + e.getMessage() + %22 for %22 + fileName);%0A                %7D%0A            %7D%0A        %7D).start();%09%09%0A    %7D%0A%09public  void aret()%7B%0A%09clip.stop();%09   %0A  %7D %0A%7D%0A

Create Sound.java