Emit a beepTag(s): IO
There are three ways to emit a beep in Java.
For Java, AU files need to be created at a sample rate of 8000. Any sample rate beyound that will not work. See also this How-to.
public class TestBeep {
public static main(String args[]) {
// ASCII bell
System.out.print("\007");
System.out.flush();
}
}
import java.awt.*;
public class Beep {
public static void main(String args[]) {
Toolkit.getDefaultToolkit().beep();
}
}
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com