Question: Java please Write a method called findLargest that takes a two-dimension array of integers as a parameter and returns the largest integer in the array.
Write a method called findLargest that takes a two-dimension array of integers as a parameter and returns the largest integer in the array. For example, if the array (as created by the program below) is 10 45 38 2 42 3 21 44 The value returned would be 45 public class Question2 ( public static void main (String args(])f int arrl)1 (10, 45, 3, 8), 12, 42), 13, 21, 44)) System.out.println ("The largest number is +findLargest (arr)) //main public static int findLargest (int 11 yArray) ) I/ findLargest / class Question2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
