terrible geek programmery joke :s

class MyLaughingThread extends Thread {

bool stillLaughing = false;

void run() {
stillLaughing = true;

while(stillLaughing) System.out.println("Har de har");
}


public static void main (String [] arg) throws JokeNotFunnyException {

if (arg.length > 0) {

// Response to original joke
JokeInterpreter ji = new JokeInterpreter(arg[0]);

if (ji.isFunnyJoke()) {
MyLaughingThread mlt = new MyLaughingThread();
mlt.run();
}
else throw new JokeNotFunnyException();

}

}




> java MyLaughingThread "Two ints and a Float are in a bar. They spot an attractive Double on her own.

The first int walks up to her. \"Hey, baby\", he says, \"my VM or yours\". She slaps him and he walks back dejected.

The second int walks over. \"Hey, cute-stuff, can I cook your Beans for breakfast\". After a
quick slapping, he too walks back.

The Float then ambles over casually: \"Were those two primitive types bothering you?\", he remarks.
\"Yes. I'm so glad you're here\", she says. \"They just had no Class!\""

MyLaughingThread throws JokeNotFunnyException at line 17
in public static void main(String [] args)


...
 
I don't see a JokeInterpreter constructor :p

bad exception handling tbh :p
 
Last edited:
5tephen said:
Thanks for that, it probably would have been called automatically at some stage, but it's good to do it anyway just in case :)

I hoped it would remove all these bad punnish posts :'(
 
5tephen said:
Why was binary thrown out of school?
Because he was boolean algebra.






//gets coat, jacket, shoes, jumper and change of underwear
This is why I was suspicious of you in the hosting thread. Never trust a man who wears a coat in summer :D
 
Beansprout said:
This is why I was suspicious of you in the hosting thread. Never trust a man who wears a coat in summer :D

wtf how did you recognise me :p
I just thought it was that bad a joke that I'd be on a long holiday that would last well into winter :D
 
Back
Top Bottom