Question: Can you help me fix my code? This is done in Java, and there are 2 methods I made. The first one is called setValues(),
Can you help me fix my code? This is done in Java, and there are 2 methods I made. The first one is called setValues(), and the second one is called countFrequency().
Here are the instructions for the first method:

here is my code for the first method

Here are the instructions for the second method:

Here is my code for the second method:

with a for loop with a start of int i 0 0 a a Set the ending point of when i is less than the length of the arr array Set the incrementation to increase i by 1 using the unary operator Within the loop set the arr array element with an index of i to equal the variable value. Call the anim method with an argument of i like we did in the so rtArray0 method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
