waltermilner

Untitled

Jul 17th, 2019
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class Test implements Runnable {
  2.  
  3.   public static void main(String[] d) {
  4.     Test t = new Test();
  5.     Thread th = new Thread(t);
  6.     th.start();
  7.   }
  8.  
  9.   public void run() {
  10.     int z = 0;
  11.     for (long counter = 0; counter < 1000000000L; counter++) {
  12.       z++;
  13.     }
  14.     System.out.println("Ended");
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment