This is an unusual question. The key to this question is understanding what is being asked for: not the actual number that is the most frequent, just the frequency itself. The solution below uses arrays. There are easier ways using, for example, ArrayLists and sorting, but this just uses the basics. Look at the code carefully: it probably doesn't work the way you expect. The key is the array values\[\]. The array is initialised to zeros and then is used to count number of times a particular digit is entered. ```java Scanner scan = new Scanner(System.in); System.out.println("How many numbers do you want to enter?"); int number = scan.nextInt(); int [] values = new int[10]; // Values is initialised to 0 for (int i = 0; i <10; i++) { values[i] = 0; } System.out.println("Enter numbers"); for (int i= 0; i< number; i++){ int n = scan.nextInt(); // add one to the count values[n]++; } int highest = 0; int lasthighest = 0; for (int i = 0; i<10; i++) { if (values[i]>= highest) { lasthighest = highest; highest = values[i]; } } if (highest == lasthighest) { System.out.println("Date was multimodal"); } else { System.out.println(highest); } ```