Question: in java Q2 [10 points] . Create a java class called Question2 , and inside this class implement a non static public method called int
in java
Q2 [10 points]. Create a java class called Question2, and inside this class implement a non static public method called int findMin( int [][] ), which takes as a formal parameter a two-dimensional array of int type, and returns the smallest element in the array.
Also, create a main method Inside class Question2. In the main method, declare a two-dimensional array of size 3x3, and initialize it with the following values:
{[12, 4, 3],
[8, 2, 14],
[12, 48, 10] }
Then, call the method findMin and pass the initialized array as an actual parameter to findMin.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
