Answers for "java what does theard.sleep do"

4

sleep() java

import java.util.concurrent.TimeUnit

try {
	TimeUnit.SECONDS.sleep(1);
}
catch (Exception e) {
	System.out.println("Oops! Something went wrong!")
}
Posted by: Guest on September-02-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language