Created
September 23, 2020 16:23
-
-
Save sne007/3cc347b3d7c89549ede5c151860c0632 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
class ThreadForT1 implements Runnable { | |
public void run() { | |
System.out.println("Thread for T1 is running in thread " + Thread.currentThread().getName()); | |
} | |
public static void main(String[] args) { | |
ThreadForT1 t = new ThreadForT1(); | |
t.run(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment