Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void wait(int durationInSeconds) {
        wait(new Double(durationInSeconds));
    }

    public static void wait(double durationInSeconds) {
        try {
            Thread.sleep((int) (durationInSeconds * 1000));
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}