I was looking at Java examples the other day and I came across one code that displays the date/time and beeps. I thought it was pretty cool since I didn't know one could do that, but hey, I'm only in Intro. to Java. :) Anyway, I started messing around with the code to see what was causing the beep, and I finally figured out (easily) that is was the
\007. I started decreasing the number and increasing the number to see what results I would get and when I decreased the number I received smiley faces, diamonds, clubs, etc. When I increased the number all I received were blanks with the number included.
In any case, I was wondering what the programmer calls these things and where I could possibly find a list of items that describes what each thing does. In case you need to see the coding, which you probably don't if you're Java-skilled, the following is the coding:
import java.util.*;
public class BeepDate
{
public static void main(String[] args)
{
System.out.println(new Date() + "\007");
}
}