Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.concurrent.TimeUnit;

public class Main {
    public static final void sleep4MilliSec(long timeout) {
        sleep(TimeUnit.MILLISECONDS, timeout);
    }

    public static final void sleep(TimeUnit tu, long timeout) {
        try {
            tu.sleep(timeout);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}