Question: Question 4 An array listA is called balanced if it stores the same count of even and odd integers. a. Write a method called balancedArray

Question 4 An array listA is called balanced if it stores the same count of even and odd integers. a. Write a method called balancedArray that receives one parameter, an array list of integers. The method should print if the array is balanced or not. using Use the following method header: public static void balancedArray (int[] listA) java b. Write a test program (main) to test the method by filling an array list with 10 random integers to be in the range 1 to 30. Then the program will output the integers stored in listA and the method balancedArray to check if the array listA is balanced or not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
