how-to

Others

How to do a beep sound

For working with this method you need to use:

import java.awt.*;

An easy call for default short beep sound:

Toolkit.getDefaultToolkit().beep();