.. Write a method called findNums that takes a two-dimension array of integers as a parameter...

60.1K

Verified Solution

Question

Programming

.. 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

Answer & Explanation Solved by verified expert
3.6 Ratings (359 Votes)
Java Codepublic class Question2public static    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students