Assignemnt #71 and Shorter Double Dice

Code

/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Shorter Double Dice
/// File Name: ShorterDoubleDice.java
/// Date Finished: 1/6/2016

import java.util.Random;
public class ShorterDoubleDice
{
    public static void main( String[] args )
    {
        Random r = new Random();
        
         int r1, r2, total;
        
        System.out.println("HERE COME THE DICE!");
        System.out.println(" ");
        
        do 
        {
            r1 = 1 + r.nextInt(6);
            r2 = 1 + r.nextInt(6);
            total = r1 + r2;
            System.out.println("Roll #1: " + r1 );
            System.out.println("Roll #2: " + r2 );
            System.out.println("The total is " + total + "!");
            System.out.println(" ");
        }
        while ( r1 != r2 );
    }
}
    

Picture of the output

Assignment 71