Assignemnt #71 and ShorterDice

Code

///Name: Ben Borglin
///Period: 6
///Program name: Shorter Dice Doubles
///file name: ShorterDice.java
///Date Finsihed: 10/23/15

import java.util.Random;

public class ShorterDice
{
    public static void main( String[] args )
    {
    
    int total;
    
    Random r = new Random();
    
        int Roll1, Roll2;
    
    System.out.println("HERE COMES THE DICE!");
    System.out.print("");
    
        do
        {
            Roll1 = 1 + r.nextInt(6);
            Roll2 = 1 + r.nextInt(6);
            System.out.println("Role #1: " + Roll1);
            System.out.println("Role #2: " + Roll2);
            System.out.println(" ");
            System.out.println("The total is " + total);
            System.out.println(" ");
    
            total = Roll1 + Roll2;
        }while (Roll1 != Roll2); 
    }
}
    

Picture of the output

Assignment 71