🧠What Is "Hello, World!"?
It's a basic program that does one thing: prints the message Hello, World!
to the screen. But more importantly, it introduces you to the structure of a Java program.
//Code
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
🛠How to Run It
-
Open a code editor (like VS Code or just Notepad).
-
Save the file as
HelloWorld.java
. -
Open Command Prompt (or Terminal).
No comments:
Post a Comment