Skip to content

Instantly share code, notes, and snippets.

@sdubois
Created June 4, 2011 01:56
Show Gist options
  • Save sdubois/1007467 to your computer and use it in GitHub Desktop.
Save sdubois/1007467 to your computer and use it in GitHub Desktop.
Multithreaded "yes"
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();
}
}
@sdubois
Copy link
Author

sdubois commented Jun 4, 2011

And yes, this is a joke ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment