So basically it doesn't allow me to compile, the error message is in Chinese so I cannot show it to you guys. But heres the codes:
public static void main (String[] args){
int[] fiveDice=new int[5];
roll(fiveDice);
}
void roll(int[] dice){
for(int i=0;i<5;i++){
dice[i]= (int)(Math.random()*6+1);
}
so on the line "roll(fiveDice)", it occurs an error. I had tried "roll(fiveDice[])" and it shows me another error.