Created
January 18, 2017 12:07
-
-
Save a-dminator/b5d0ab9cb47a78f722193be3a9a520f1 to your computer and use it in GitHub Desktop.
This file contains 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 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