Error: java.lang.InterruptedException is not caught and does not appear...
Hi, I have a simple program like:
And I'm using .NET to compile which is fine. However, the result screen just appears for 0.1 seconds. I've used the system("Pause") when programming in C++.
public class HelloWorldApp
public static void main (String args)
System.out.println ("Hello World!");
I tried Thread.Sleep(500) right after "System.out.println("Hello World!") but get this error
What is the equivalent call in java?
Exception 'java.lang.InterruptedException' is not caught and does not appear in throws clause.