error with method beep?
when i wrote the following codeJOptionPane.showMessageDialog(null, "You Must Enter A Name! " );void beep();it gave me two errors in the beep code:1-illegal start of expression2-'; ' expectedalthough i have imported the class toolkit?