Threah.sleep(long millis) : Thread « java.lang « Java by API
- Java by API
- java.lang
- Thread
Threah.sleep(long millis)
/*
* Output:
*
]
*/
public class MainClass {
public static void main(String args[]) {
try {
Thread.sleep(1000);
} catch (Exception e) {
}
System.out.println("]");
}
}
Related examples in the same category