Question: I need help solving CS 04113 2. (a) Write a method countOdd with the following header public static int countodd(int [1 number) to return the

I need help solving  I need help solving CS 04113 2. (a) Write a method
countOdd with the following header public static int countodd(int [1 number) to
return the number of even numbers in an array num positive integers
5or example, when number (2,1,2,1,3,9,51). the return value is 5. Note that
you count the number of times an (the number 1 is counted
twice, not once) odd number appears (6 marks) m nie (nd exenumbers.engyth))

CS 04113 2. (a) Write a method countOdd with the following header public static int countodd(int [1 number) to return the number of even numbers in an array num positive integers 5or example, when number (2,1,2,1,3,9,51). the return value is 5. Note that you count the number of times an (the number 1 is counted twice, not once) odd number appears (6 marks) m nie (nd exenumbers.engyth)) (b) Write a method FindFirstFour using do-while loop that prints out the first four String objects that equals 'tardy" in an ArrayList (called items) of String objects. (Assume that (1) items ArrayList is declared as a field variable and created in the constructor and (2) there are at least four strings equals tardy" in items) O puplic void FindFir(8marks) nt Couunt4 do s SyStam ust printin(tardy'+ itams) tas tt

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!