Skip to content

Commit

Permalink
Merge pull request #1887 from nitinya9av/fix-issue-4
Browse files Browse the repository at this point in the history
Fixed issue #1516 | Easy Issue (Java)
  • Loading branch information
nikohoffren authored Jan 6, 2024
2 parents 2a16fe8 + f362089 commit 64cd41e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Binary file added tasks/java/easy/GreetingApp.class
Binary file not shown.
12 changes: 10 additions & 2 deletions tasks/java/easy/GreetingApp.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
// Java - Easy

public class GreetingApp {
import java.util.Scanner;

public class GreetingApp {
public static void main(String[] args) {
// TODO: Implement a Simple Greeting Application
Scanner scanner = new Scanner(System.in);

System.out.print("Enter your name: ");
String name = scanner.nextLine();

System.out.println("Hello, " + name + "! Nice to meet you!");

scanner.close();
}
}

0 comments on commit 64cd41e

Please sign in to comment.