Mega Code Archive
Categories
/
Java Tutorial
/
Development
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(); } }