Skip to content

Commit 3804ce0

Browse files
committed
Input demo using scanner
1 parent 77672c2 commit 3804ce0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Input.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import java.util.Scanner;
2+
3+
class Input{
4+
public static void main(String[] args){
5+
Scanner sc = new Scanner(System.in);
6+
String name = sc.next();
7+
int a = sc.nextInt();
8+
}
9+
}

0 commit comments

Comments
 (0)