I am working on a project that has me scan for numbers 1-9 then storing them in an array, all the while checking for repeats. I can get everything except the part where I have to check for repeats. Is there an easy way to compare 1 number with an entire array?
ex. int[] array = new int[9];
        array[0] = 0;
        array[1] = 1;
        array[2] = 2;
        array[3] = 3;
        array[4] = 4;
then user inputs 3, how can I check the entire array for 3?
 
    