sleep Thread Quietly - Java java.lang

Java examples for java.lang:Thread

Description

sleep Thread Quietly

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        long s = 2;
        sleepQuietly(s);/*from  www. j  a va  2  s  . c  o m*/
    }

    public static void sleepQuietly(long s) {
        try {
            Thread.sleep(s);
        } catch (InterruptedException e) { /* Do not care. */
        }
    }
}

Related Tutorials