Skip to content

Commit

Permalink
Merge pull request #138 from SarvariHarshitha/main
Browse files Browse the repository at this point in the history
New Language Java
  • Loading branch information
Mathys-Gasnier authored Jan 2, 2025
2 parents 17a0a44 + 3e28003 commit 7512a90
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions snippets/java/basics/hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Hello-World
description: Prints Hello world in the console
author: SarvariHarshitha
tags: java, console, printing
---

```java
// This is the main class of the Java program
public class Main {
// The main method is the entry point of the program
public static void main(String args[]) {
// This statement prints "Hello, World!" to the console
System.out.println("Hello, World!");
}
}

```
12 changes: 12 additions & 0 deletions snippets/java/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7512a90

Please sign in to comment.