Home - Programming - Java- Hello World
Hello World
/** * Application: Hello World * Author: Brian SonniE * 18/10/09 * www.fluidcoding.com */ public class HelloWorld { public static void main(String[] args) { // println (Print Line) method prints text to the terminal window. // With a line break at the end of the statement. System.out.println("Hello World!"); // Output: Hello World! // The print method does not include a line break System.out.print("Hello "); System.out.print("World!"); // Output: Hello World! } }
Output
Hello World!
Hello World!
Hello World!