Skip to content

Instantly share code, notes, and snippets.

@a-dminator
Created January 18, 2017 12:07
Show Gist options
  • Save a-dminator/b5d0ab9cb47a78f722193be3a9a520f1 to your computer and use it in GitHub Desktop.
Save a-dminator/b5d0ab9cb47a78f722193be3a9a520f1 to your computer and use it in GitHub Desktop.
public class Main {
private static class ConsolePrinter implements Runnable {
private final String text = "my text";
private ConsolePrinter(String text) {
this.text = text;
}
@Override
public void run() {
System.out.print(text);
}
}
public static void main(String... args) {
new Thread(new ConsolePrinter(args[0])).start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment