Skip to content

Commit 882ea48

Browse files
committed
feat: Implement 2D array input and output using nested loops and enhanced for-each loop
🧠 Logic: - Declares and initializes a 3x3 2D array. - Takes input using nested `for` loops for each cell. - Outputs each row using `Arrays.toString()` via enhanced for-each loop for cleaner display. 🔍 Highlights fixed-size matrix input, row-wise traversal, and formatted output. Signed-off-by: Somesh diwan <[email protected]>
1 parent cd628d1 commit 882ea48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Section9ArrayAB/Array IMP/MultiDimension.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public static void main(String[] args) {
88
4 5 6
99
7 8 9
1010
*/
11+
1112
Scanner in = new Scanner(System.in);
1213
// int[][] arr = new int[3][];
1314

0 commit comments

Comments
 (0)