Skip to content

Commit 0f1f287

Browse files
authored
Solution of Hello World question in Java
1 parent 417d119 commit 0f1f287

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

0 - Hello, World/Solution.java

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java.util.*;
2+
public class Main
3+
{
4+
public static void main(String[] args)
5+
{
6+
Scanner sc=new Scanner(System.in);
7+
System.out.println("Enter any text:");
8+
String input=sc.nextLine();
9+
System.out.println("Hello, World. \n"+input);
10+
sc.close();
11+
}
12+
}

0 commit comments

Comments
 (0)