The Furious Angels
FA Discussion => Off Topic => Topic started by: Anonymous on May 18, 2005, 12:49:03 am
-
Java and boredom are a bad combination:
public class UselessTopic extends Topic
{
public static void main(String args[])
{
private int posts = 1000000;
System.out.print("Let's see how many useless posts we can make:");
for ( int postCount=0; postCount < posts; postCount++ )
{
System.out.println( postCount + "useless posts so far.");
System.out.println( "Let's go for more!" );
}
}
}
(Note: This version doesn't actually compile...Unless you write a superclass for it and change the variable declarations).
-
Okay, here's a version that compiles.
Just throw it into your favorite Java compiler and watch it go!
public class UselessTopic
{
public static void main(String args[])
{
int posts = 1000000;
System.out.println("Let's see how many useless posts we can make:");
for ( int postCount=0; postCount < posts; postCount++ )
{
System.out.println( postCount + " useless posts so far.");
System.out.println( "Let's go for more!" );
}
}
}
(Edited for Kosila's nitpicky neatfreakyness)
-
Make the first out.print into a out.println ... also make it " useless posts so far." ... otherwise it will print like this:
Let's see how many useless posts we can make:0useless posts so far.
Let's go for more!
1useless posts so far.
Let's go for more!
...
:P I'm obsessed with how good the results looks. I've lost marks before for wasting my time on making it look good.
-
<---does it old fasio way
postCount++;
-
damn midnight, if you're actually taking the time to type all of that out in the forums, u must be bored out of your mind............DAMN
at least when im bored, i grab a pillow, get comfortable on a couch, and go to sleep.... :p
-
<useless>
Man, you guys got my hopes up with a topic like useless posts. I thought someone was on to me. Turns out this is a friggin coder's workshop. Well, I got my useless post in here anyway didn't I. YAY me!!
</useless>
-
$posts = 1000000;
echo "Let's see how many useless posts we can make:<br>";
for($i=1;$i<$posts;$i++){echo $i." useless posts so far.<br>Let's go for more!<br><br>";}
pwned.
-
<------ says it all.
over 1000 completely useless posts
about 100 of which made sense to more than 3 people
and about 10 of which held any sort of significance :)
.... oops ... .shouldn't have said that .... please don't don me with the spam forums award!!! i'm not THAT bad!!! i've just been here for a year!! lol :)
-
$posts = 1000000;
echo "Let's see how many useless posts we can make:<br>";
for($I=1;$I<$posts;$I++){echo $I." useless posts so far.<br>Let's go for more!<br><br>";}
pwned.
Aw hell naw. PHP?