The code
import javax.sound.sampled.*; import java.io.*; public class Tester { static Thread th; public static void main(String[] args) { sta
while(clip.isRunning()){}
is better