-
-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1887 from nitinya9av/fix-issue-4
Fixed issue #1516 | Easy Issue (Java)
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |