The following is a lab more my Intro to Java class. It's my first Java class and I'm beyond stuck. I have a few lines of code but nothing noteworthy.

Solve below problem using ‘do-while’ and random number generator.

> 
> Simulate rolling a pair of dice 10,000 times and counts the number of times doubles of are rolled for each different pair of doubles.
> 
> 
> 1. Your program should roll two dice using the Random object (that is, generate two numbers between 1 and 6)
> 2. Define 6 counters variables
> 3. If the dice match (both should be same 1-1, 2-2, 3-3...), then increment a specific counter [you can use ‘if’ or ‘switch’ for condition check (dice1==dice2) and counter increment.
> 4. Display the results after the loop completes 10,000 times. 
> 
> 
> 
> ```
> 1-1 displayed: 30 times 
> 2-2 displayed: 100 times 
> ...................
> 6-6 displayed: 890 times
> 
> ```
> 
> 
> 

Code:

```
public class DiceRoll {

    public static void main(String []args){

        int x = 0;

        int counter1 = 0;
        int counter2 = 0;
        int counter3 = 0;
        int counter4 = 0;
        int counter5 = 0;
        int counter6 = 0;

        do {

            int dice1 = (int)(Math.random()*6)-1;
            int dice2 = (int)(Math.random()*6)-1;

            if (dice1 == dice2){
                if (dice1 == 1){
                    counter1++;
                }
                if (dice1 == 2){
                    counter2++;
                }
                if (dice1 == 3){
                    counter3++;
                }
                if (dice1 == 4){
                    counter4++;
                }
                if (dice1 == 5){
                    counter5++;
                }
                if (dice1 == 6){
                    counter6++;
                }
            }

        } while (x > 10000);

        System.out.println("Results:");
        System.out.println(" ");
        System.out.println("1-1 displayed: " + counter1);
        System.out.println("2-2 displayed: " + counter2);
        System.out.println("3-3 displayed: " + counter3);
        System.out.println("4-4 displayed: " + counter4);
        System.out.println("5-5 displayed: " + counter5);
        System.out.println("6-6 displayed: " + counter6);
    }
}

```