Ugh havin homework problemz

Write a program to simulate rolling dices as follows:

Use the method Math.random( ) to generate random integers bewteen 1 and 6.

Then generate ten-thousand numbers between 1 and 6. Then calculate the number of 1 that has appeared, the number of 2 that has appeared, and so on. The final output must be on a dialog box (using JOptionPane). The process must be looped until the user decides to quit. The output format (not the actual numbers) should like the following:

*****************************************

The dice has been rolled ten-thousand times, here is the statitics

The number of 1s appeared is 2000

The number of 2s appeared is 2000

The number of 3s appeared is 2000

The number of 4s appeared is 2000

The number of 5s appeared is 1000

The number of 6s appeared is 1000

Do you want to try again (Y/N)?:

*********************************************

All i can do is make a program that asks you how many dice you want to roll, and how many times you want to roll it, them shows the added result of the rolls.

import javax.swing.JOptionPane;

public class Dice {

public static void main (String[] args) {

String temp1, temp2, temp3, temp4;

int dice = 0;

int roll = 0;

while (true) {

temp1= JOptionPane.showInputDialog ("How Many Dice Do You Want To Roll? ");

dice = Integer.parseInt(temp1);

if (dice > 0) break;

System.out.println ("Must Be Positive!");

}

while (true) {

temp2 = JOptionPane.showInputDialog ("How Many Times Do You Want To Roll? ");

roll = Integer.parseInt(temp2);

if (roll > 0) break;

System.out.println ("Must Be Positive!");

}

int dicetotal = Dicecount (dice, roll);

JOptionPane.showMessageDialog(null,

"Dice total is " +dicetotal);

}

public static int Dicecount (int dice, int roll) {

int dicetotal = 0;

for (int i = 0; i <roll; i++) {

for (int x = 0; x < dice; x++) {

int rollcount =(int)(1+6*(Math.random()));

dicetotal+=rollcount; }

}

return dicetotal;

}

}

I need to make a program that automatically rolls the dice 10,000 times and shows how many times each number was rolled and then asks if you want to do it again (and does if you type "Y")