- Open Notepad.
- Type:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } - Save the file as
HelloWorld.javain a folder you can find (for exampleC:\JavaPrograms\Hello). - Open Command Prompt.
- Change to the folder:
cd C:\JavaPrograms\Hello - Compile:
javac HelloWorld.java - Run:
java HelloWorld - You should see
Hello Worldprinted.
-
Notifications
You must be signed in to change notification settings - Fork 0
sumitnoob/my-first-repo
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published