- Download and save
HelloWorld.java
under yourDesktop
folder - Open CMD/Terminal
- cd into your Desktop
cd Desktop/
- Compile the Java program
javac HelloWorld.java
- Run Java program
java HelloWorld
- Expected Output:
Hello World.
Last active
February 5, 2019 04:33
-
-
Save jicee13/a7557a364df690deca85ec4b3ee8c0b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment