Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 604 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 604 Bytes

Hello world with Java ☕

This is a simple "Hello world" done with Java programming language.

Source code

This is the source code of the program:

public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello world!");
  }
}

Notice that System.out.println("Hello world!"); shows the string "Hello world!" on the screen.

Compile program

To compile the "Hello World" program, type the following:

javac HelloWorld.java

Excute the program

To execute the program, type this:

java HelloWorld