I am working on a Java program, and I really need to be able to play a sound by a certain frequency and duration, similarly to the c# method System.Beep, I know how to use i
Just print it:
System.out.println("\007")
Works on Windows and MacOS.