Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static void sleep() {
        //        sleep(formatTime(0.2f));
        calculation(20);
    }

    public static void calculation(long time) {
        //ensure that it doesn't take all of the processor power
        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
            //            Debug.error(e);
            e.printStackTrace();
        }
    }
}