Skip to content

Instantly share code, notes, and snippets.

@sne007
Created September 23, 2020 16:24
Show Gist options
  • Save sne007/f472db3898625b466b1d401c86d665ff to your computer and use it in GitHub Desktop.
Save sne007/f472db3898625b466b1d401c86d665ff to your computer and use it in GitHub Desktop.
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