hey guys, im new here to antionline and i needed some help with one of my programs in Java. im sitting in my computer science class and there are some students that think its funny to playannoying music. my response?

public class h3r3tic
{
public static void main(String args[])
{
int intVal=7;

for(int k=1;k<=5000000;k++)
{
System.out.println((char) + intVal);
k--;
}
}
}


however i was talking to my teacher and she said that in C++ and many other programming languages you can change the pitch and mhz of the constant an ever-so-vengeful beeping. or even add orchange a different sound? any help woudl be great and if you want my personal email for a more personal response its [email protected]
any help you guys can provide would be more than appreciated.