Copy and paste the application below into your editor (Eclipse). Save as HelloWorldApp in your network drive under the ICS3U directory.
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
Compile the program and then execute. In a window called console should appear with the words "Hello world".