|
-
February 9th, 2006, 04:53 PM
#2
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--;
}
}
}
I dont understand, is there more to this? Seems like System.out.println((char) + intVal); will print some "char" on the screen plus 7, 5,000,000 times. I dont have a compiler on this PC, but I dont see what this will accomplish. Also, why would you want to make the thing make annoying sounds? When I took Java, seems like we made useful programs.
-Deeboe
If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither the enemy nor yourself, you will succumb in every battle.
- Sun Tzu, The Art of War
http://tazforum.**********.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|