Guest User

Untitled

a guest
Oct 27th, 2015
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.BlinG.Code;
  2.  
  3. public class GetTheMail implements Runnable {
  4.  
  5.     private int startTime;
  6.  
  7.     public GetTheMail(int startTime) {
  8.         this.startTime = startTime;
  9.     }
  10.  
  11.     public void run() {
  12.  
  13.         try {
  14.             Thread.sleep(startTime * 1000);
  15.         }
  16.         catch(InterruptedException e) {
  17.             System.out.println("Checking Mail");
  18.         }
  19.         System.out.println("Checking Mail");
  20.  
  21.     }
  22.  
  23. }
RAW Paste Data