My program is supposed to make sure each value the user enters is between 10-100. The value is then stored in the array. That part works fine. The other condition is that the value the user enters has to be different from all the other arrays. ie...array[0]=20 so all of the other arrays can no longer equal to be set to 20. I've been trying to solve this but I'm just not sure where to go. I tried setting statements after my while(userInput < 10 || userInput > 100) to check for any repeats and that worked. The problem was then the user could enter values less than 10 and greater than 100. Any help would be greatly appreciated!

```
public static void main(String[] args) {
    //Creating scanner object
    Scanner input = new Scanner(System.in);
    int[] array = new int[5];
    int counter = 0;

    while(counter < 5)
    {
        for(int x = 0; x < array.length; x++)
        {
            System.out.print("Enter number between 10 & 100: ");
            int userInput = input.nextInt();

            while(userInput < 10 || userInput > 100)
            {                
                System.out.print("Please enter number between 10 & 100: ");
                userInput = input.nextInt();
            }

            array[x] = userInput;
            System.out.println(array[x]);
            counter++;

        }

    }

    System.out.println();
    System.out.println("The value of Array[0]: " + array[0]);
    System.out.println("The value of Array[1]: " + array[1]);
    System.out.println("The value of Array[2]: " + array[2]);
    System.out.println("The value of Array[3]: " + array[3]);
    System.out.println("The value of Array[4]: " + array[4]);        

}

```

}