Created
June 4, 2011 01:56
-
-
Save sdubois/1007467 to your computer and use it in GitHub Desktop.
Multithreaded "yes"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class yes extends Thread{ | |
static String yes; | |
public void run(){ | |
for(;;){ | |
if(yes == null){ | |
System.out.println("y"); | |
} | |
else{ | |
System.out.println(yes); | |
} | |
} | |
} | |
public static void main(String args[]) { | |
if(args.length > 0){ | |
yes = args[0]; | |
} | |
(new yes()).start(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And yes, this is a joke ;)