Commit 1929652
committed
feat: Add Inputs class to demonstrate reading different data types from user
Add a program that:
- Takes roll number (int), name (String), and marks (float) as input
- Uses `Scanner` to read and store user input
- Prints the collected data to the console
- Demonstrates handling of multiple primitive data types via standard input.1 parent 56e3e97 commit 1929652
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
12 | 10 | | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
0 commit comments