|
Post by Finn on Dec 24, 2007 21:17:04 GMT -5
// The "XF" class. import java.awt.*; import hsa.Console;
public class XF { static Console c; // The output console
public static void main (String[] args) { c = new Console ();
c.println ("Welcome to the XF Thread Checker"); int threadcounter = 0; int run = 1; String thread;
while (run == 1) { thread = c.readXFThread; if (thread != null) { threadcounter = threadcounter + 1; } else { c.println ("A total of " + threadcounter + " threads were detected"); run = 0; } }
if ((postcounter == 0) || (postcounter <= 10)) { c.println ("This board has failed."); } else { c.println ("This board has succeeded."); } } // main method } // XF class
|
|
|
Post by Cunt Wrap Supreme on Dec 24, 2007 22:16:16 GMT -5
import java.awt.*; import hsa.Console; public class xf2 { static Console x = new Console ();
public static void main (String[] args) { while(true) { x.print("FUCK YOU. "); } }
}// end class
Also, why use a var declaration to determine whether or not you continue a loop?
break;
roflz
|
|
|
Post by Finn on Dec 24, 2007 23:36:56 GMT -5
i don't know, that's how i roll and how i was taught/taught myself
//cocks int greatestnum;
c.print ("Please enter the highest integer EVER: "); greatestnum = c.readInt();
if (greatestnum != 24) { c.println ("Congratulations, you are fucking retarded"); } else { c.println ("Correct."); }
|
|
|
Post by Hauskaz on Mar 15, 2008 22:13:59 GMT -5
lol forgot this thread existed.
import java.awt.*; import hsa.Console;
public class Fuck { static Console cock = new Console(); public static void main(String[] args) { cock.setTextBackgroundColor(Color.black); while (true) // Jerkin' it all over your screen { cock.setTextColor(Color.red); cock.print("l"); cock.setTextColor(Color.green); cock.print("o"); cock.setTextColor(Color.orange); cock.print("l"); cock.setTextColor(Color.blue); cock.print("s"); cock.setTextColor(Color.yellow); cock.print("u"); cock.setTextColor(Color.white); cock.print("p"); } } }
|
|