Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
94
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 Test implements Runnable {
  2.    
  3.     private boolean running = true;
  4.    
  5.     public static void main(String[] args) {
  6.         System.out.println("Main statement");
  7.     }
  8.  
  9.     @Override
  10.     public void run() {
  11.         while(running) {
  12.             System.out.println("Testing");
  13.         }
  14.        
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement