• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beep in Java

 
Felix Devasia
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anyone explain me how you could produce a beep Sound(thru system speaker)in java?
Thanks
 
Matt Siegel
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out java.awt.Toolkit. It has a method called beep(). It would be used like this:
Toolkit.getDefaultToolkit().beep();
HTH,
Matt
 
frank davis
Ranch Hand
Posts: 1479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
char c = 7;
System.out.println(c);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic