import java.awt.Toolkit; public class MainClass { public static void main(String[] args) { Toolkit tk = Toolkit.getDefaultToolkit(); tk.beep(); } }