Here you can find the source of sleepAndIgnoreInterrupts(int millis)
public static void sleepAndIgnoreInterrupts(int millis)
//package com.java2s; public class Main { /**// ww w .ja v a2 s.c o m * Sets the current thread to sleep. Use this method with care because InterruptedExceptions interrupt the sleep but * are not re-thrown. */ public static void sleepAndIgnoreInterrupts(int millis) { try { Thread.sleep(millis); } catch (InterruptedException e1) { // ignore interrupts // be aware that the exception is not thrown again, thus the sleeping thread is not interrupted } } }