Class 3:
Scanner scan = new Scanner(System.in);
int value = scan.nextInt(6) + 1;
System.out.println("The result is "+value);
public static int throwDice() {
Random rand = new Random();
return rand.nextInt(6) + rand.nextInt(6) + 2;
}
public static void printArray(int[] array) {
if (array.length > 0)
System.out.print(a[0]);
for (int i=1;i<array.length;i++)
System.out.print(a[i] + ", ");
}