import java.util.Scanner;
public class Mode{
public static void main(String[] args){
Scanner reader = new Scanner(System.in);
int[] numList = new int[10];
int array = 0;
int mode = 0;
for(int i = 0; i<10; i++){
System.out.print("Enter a number: ");
int data = reader.nextInt();
numList[array] = data;
}
}
}
I have been trying to find a way to have the code search for a certain number, but have failed at even that. I am a high school student learning java. I use the Fundamentals of Java textbook when working. Any help will be greatly appreciated, thank you.