Advertisement
gitman3

Simple thread implements

Jun 15th, 2023
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. class IMyThread implements Runnable{
  2.     public void run(){
  3.         System.out.println("IThread RUN");
  4.     }
  5. }
  6.  
  7. public class IMySimpleThread {
  8.     public static void main(String args[]){
  9.         System.out.println("Thread MAIN");
  10.         Thread t1=new Thread(new IMyThread());
  11.         t1.start();
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement