Required output is commented at the bottom of the codes. If you already saw that and think it wasn't clear enough, the output should be the mode of the given data. In this case, there should be two...
Type: Posts; User: JlovesJava
Required output is commented at the bottom of the codes. If you already saw that and think it wasn't clear enough, the output should be the mode of the given data. In this case, there should be two...
I was trying to say print all the values that has equal number of repetitions, but I didn't see those two * * characters while posting. I am sorry for that.
public class MmM{
public static void main(String[] args)
{
double[] data = {1, 1, 2, 2, 3 };
MmM.mode(data);
}
public static void mode(double [ ] numArray)
...