My User Page
Syntax reminder:
The traditional Hello world program can be written in Java as:[1]
public class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Prints the string to the console.
}
}
- ^ "Lesson: A Closer Look at the Hello World Application". The Java™ Tutorials > Getting Started. Oracle Corporation. Archived from the original on March 17, 2011. Retrieved April 14, 2011.