Commit cd628d1
committed
feat: Create and populate a 2D dynamic ArrayList (3x3) using user input
🧠 Logic:
- Initializes a 2D `ArrayList<ArrayList<Integer>>` with 3 inner lists.
- Uses nested loops to input 3 elements into each of the 3 inner lists.
- Displays the 2D list structure as a single output.
🔍 Demonstrates dynamic 2D list creation where row sizes and content can be varied.
Signed-off-by: Somesh diwan <[email protected]>1 parent 04bd35e commit cd628d1
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
0 commit comments