java Unhandled exception: java.lang.InterruptedException code example
Example: Unhandled exception: java.lang.InterruptedException
try {
Thread.sleep(1500);
} catch(InterruptedException e) {
System.out.println("got interrupted!");
}
try {
Thread.sleep(1500);
} catch(InterruptedException e) {
System.out.println("got interrupted!");
}