✏️ Explanatory Question
Write a Java program that calculates the sum of each row in a 2D array and prints the result.
Given the following array:
int[][] arr = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };
Write a Java program that calculates the sum of each row in a 2D array and prints the result.
Given the following array:
int[][] arr = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };
Answer not available right now.
Sign in to save your progress and continue exactly where you left off.