Java Thread Pause pause(int milliseconds)

Here you can find the source of pause(int milliseconds)

Description

pause

License

Open Source License

Declaration

public static void pause(int milliseconds) 

Method Source Code

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

public class Main {
    public static void pause(int milliseconds) {
        try {/*from w  w w  .  ja  va2 s.  c om*/
            Thread.sleep(milliseconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void pause(float milliseconds) {
        try {
            Thread.sleep((long) milliseconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void pause(long milliseconds) {
        try {
            Thread.sleep(milliseconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. pause(double timeInSec)
  2. pause(final long time)
  3. pause(int i, String unit)
  4. pause(int millis)
  5. pause(int millis)
  6. pause(int ms)
  7. pause(int secs)
  8. pause(long low, long high)
  9. pause(long milli)