What did i do wrong here in my code?
I can't find out what i did wrong here, it keeps saying there is an error with the face.
"System.out.println(face+"\t"+freq[face]);"
Code:
import java.util.Random;
public class oranges {
public static void main(String[]args){
Random dice= new Random();
int freq[]=new int [7];
for (int roll=1;roll<1000;roll++){
++freq[1+dice.nextInt(6)];
}
System.out.println("face\tFrequency");
for (int face=1;face<freq.length;face++);{
System.out.println(face+"\t"+freq[face]);
}
}
}
What is the \t supposed to be doing, never seen that