
February 1st, 2013, 10:09 PM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 1
Time spent in forums: 25 m 12 sec
Reputation Power: 0
|
|
|
Homework - Java array method to find number repeated
Hi, what is the syntax and method to use when trying to find the most repeated number and count the number of times is repeated in an array?
int array[] = {2,3,3,4,4,4,4,6};
//Method to find the most repeated #
I can printed by using:
system.out.println("4, is repeated 4 times");
I would like to know the method to find the number 4.
Thanks in advance!
|