Question: 2 . Write a program named Lab 1 8 _ 1 B with the following. A recursive method that accepts an array of integers and

2. Write a program named Lab18_1B with the following.
A recursive method that accepts an array of integers and returns the count of all numbers divisible by 3 in the array.
This method should not have a loop inside it.
In your main method read an array of 10 numbers from the text file (Input18_1B.txt). Call the method with the array and then print the array and the method result. (Make sure you print a descriptive label with the result.)
After you have run and tested your program with the original text file, run it again using Input18_1CB.txt as the input file instead. Make sure it gives you the correct result for both test cases.

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 Databases Questions!