Assignment 57: Dice

Code

    /// Name: Ryan McAteer
    /// Period: 5
    /// Program Name: Dice
    /// File Name: Assignment57.java
    /// Date Finished: 11/16/15

import java.util.Random;

public class Assignment57
{
    public static void main ( String[] args )
	{
		Random r = new Random();
        
        System.out.println("HERE COMES THE DICE!");
        int diceOne = 1 + r.nextInt(6);
        System.out.println("ROLL ONE: " + diceOne + ".");
        int diceTwo = 1 + r.nextInt(6);
        System.out.println("ROLL TWO: " + diceTwo + ".");
        System.out.println("TOTAL: " + (diceOne + diceTwo) + ".");
    }
}
    

Picture of the output

This Should Work