Advertisement
Josif_tepe

Untitled

Mar 30th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.        MyThread t = new MyThread();
  4.        t.start();
  5.     }
  6. }
  7. class MyThread extends Thread {
  8.     @Override
  9.     public void run() {
  10.         System.out.println("Thread running");
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement