Emit a beep by printing the ASCII Bell character to the console : Beeper « Development Class « Java






Emit a beep by printing the ASCII Bell character to the console

 

public class Main {
  public static void main(String args[]) {
    // ASCII bell
    System.out.print("\0007");
    System.out.flush();
  }
}

   
  








Related examples in the same category

1.Beeper DemoBeeper Demo
2.Beeper Demo 2
3.Beep every 5 minutesBeep every 5 minutes