Question: returns the number of rows that contain the integer parameter. For example, if the array (as created by the Write a method called findRows


returns the number of rows that contain the integer parameter. For example, 

returns the number of rows that contain the integer parameter. For example, if the array (as created by the Write a method called findRows that takes a two-dimension array of integers and an int as parameters and 26 program below) is 10 45 3 8 2 42 3 21 44 mugis wood (as): noiteouse waliot or mob tent borem nhimotolqmoo solinW yas eexeT T 692 on 905 91er S And the integer parameter is 3, the value returned would be 2 (2 rows contain the number 3) bns (20nintz public class Question2 { public static void main(String args[]) { enit 6X6 10 int arr[][] = {{10, 45, 3, 8}, {2, 42), (3, 21, 44}}; System.out.println("The number of rows containing 3 is "+findRows (arr, 3)); } //main ( public static int findRows (int [] [] myArray) { 2) nism biov blov pijes Edua

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!