我的闹钟怎么就不闹啊?
import sun.audio.*;
import java.util.*;
import java.io.*;
import javax.swing.*;
public class Sound
{ public static void main(String[] args)
{ try {
Date da=new Date();
String in1=JOptionPane.showInputDialog("请输入小时数");
int i1=Integer.parseInt(in1);
String in2=JOptionPane.showInputDialog("请输入分钟数");
int i2=Integer.parseInt(in2);
int l1=25,l2=1;
while(true)
{
if((l1==i1)&&(l2==i2))break;
Thread.sleep(1000);
l1=da.getHours();
l2=da.getMinutes();
}
FileInputStream fileau=new FileInputStream("sloop.au");
AudioStream as=new AudioStream(fileau);
AudioPlayer.player.start(as);
}
catch (Exception e) {}
}
}