Advertisement
Josif_tepe

Untitled

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