1File audioFile = new File("ur file's path").getAbsoluteFile();
2AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(audioFile);
3Clip clip = AudioSystem.getClip();
4clip.open(audioInputStream);
5//Plays audio once
6clip.start();
7//Plays the audio in a loop
8clip.loop(Clip.LOOP_CONTINUOUSLY);
9//Stop the audio
10clip.stop();
11//optional
12clip.close();