Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.BlinG.Code;
- public class GetTheMail implements Runnable {
- private int startTime;
- public GetTheMail(int startTime) {
- this.startTime = startTime;
- }
- public void run() {
- try {
- Thread.sleep(startTime * 1000);
- }
- catch(InterruptedException e) {
- System.out.println("Checking Mail");
- }
- System.out.println("Checking Mail");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement