Question: java [04] Create a method with the following specifications: Name: sumDiagonal Returns: your responsibility. Parameters: your responsibility. Process: Accepts a 2D int array. Assumes the
java
[04] Create a method with the following specifications: Name: sumDiagonal Returns: your responsibility. Parameters: your responsibility. Process: Accepts a 2D int array. Assumes the 2D array is a square. in the Calculates the summation of the elements diagonal of the 2D array. See image below. Returns the summation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
