Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 21 and 20. I would appreciate if anyone could tell me, what is the right answer for them, please? 20. [4 points] Rewrite the
Question 21 and 20. I would appreciate if anyone could tell me, what is the right answer for them, please?
20. [4 points] Rewrite the following method as a generic method public int countIt (int data, int target) int count0 for (int i 0; data. length; ++)( if (dataitarget) ++count; return count; mcou efuuomm 21. [5 points] Given three ints, a b c, one of them is small, one is medium and one is large. Return true if the three values are evenly spaced, so the difference between small and medium is the same as the difference between medium and large evenlySpaced (2, 4, 6) - true evenlyspaced (4, 6, 2) - true evenlySpaced (4, 6, 3false public boolean evenlySpaced (int a, int b, int c)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started