We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17a0a44 + 3e28003 commit 7512a90Copy full SHA for 7512a90
snippets/java/basics/hello-world.md
@@ -0,0 +1,18 @@
1
+---
2
+title: Hello-World
3
+description: Prints Hello world in the console
4
+author: SarvariHarshitha
5
+tags: java, console, printing
6
7
+
8
+```java
9
+// This is the main class of the Java program
10
+public class Main {
11
+ // The main method is the entry point of the program
12
+ public static void main(String args[]) {
13
+ // This statement prints "Hello, World!" to the console
14
+ System.out.println("Hello, World!");
15
+ }
16
+}
17
18
+```
snippets/java/icon.svg
0 commit comments