.. Write a method called findNums that takes atwo-dimension array of integers as a parameter and returns thenumber of times a two-digit number appears in the array. Forexample, if the array (as created by the program below) is
10 45 3 8
2 42
3 21 44
The value returned would be 5 (there are 5 two-digit numbers inthe array)
public class Question2 {
  public static void main(String args[]){
    int arr[][] = {{10, 45, 3, 8}, {2, 42},{3, 21, 44}};
    System.out.println(“The number of twodigit numbers is “+findNums(arr));
  } //main
-java code