try {
long numMillisecondsTo = 5000; // 5 seconds
Thread.sleep(numMillisecondsTo);
} catch (InterruptedException e) {
}
try {
long numMillisecondsTo = 5000; // 5 seconds
Thread.sleep(numMillisecondsTo);
} catch (InterruptedException e) {
}