New course! Every coder should learn Generative AI!
Try a free lesson+ 4
What is \0007?
What is \0007? What is it used for? How do you use it in Java?
6 Answers
+ 6
i believe the code 7 refers to the BEL character which plays a little beep when you print it out in normal console environments
+ 2
Like noah garza said its a bell 🔔 character which is used to control code to make an audible tone
+ 2
Noah Garza try just doing "(char)7", that should output it fine
+ 1
see ascii
+ 1
OK, I've tried it many IDE's but they all say it's an illegal character.
Are there any you know that supports it?
0
Thanks, hinanawi. But could you show me an example?