I have a simple program like:
public class HelloWorldApp
public static void main (String args)
System.out.println ("Hello World!");
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++.
I tried Thread.Sleep(500) right after "System.out.println("Hello World!") but get this error "Exception 'java.lang.InterruptedException' is not caught and does not appear in throws clause".
What is the equivalent call in java?