Assignment #71 and Shorter Double Dice

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Shorter Double Dice
    /// File Name: ShorterDD.java
    /// Date Finished: 11/9/2015
    
    import java.util.Random;
            
        public class ShorterDD
        {
            public static void main( String[] args )
            {
                Random r = new Random();
                    
                int roll1 = 1 + r.nextInt(6);
                int roll2 = 1 + r.nextInt(6);
                int total = roll1 + roll2;
                    
                System.out.println( "Let's roll some dice!" );
                
                do
                { 
                    System.out.println();
                    roll1 = 1 + r.nextInt(6);
                    roll2 = 1 + r.nextInt(6);
                    total = roll1 + roll2;
                    
                    System.out.println( "Roll #1: " + roll1 );
                    System.out.println( "Roll #2: " + roll2 );
                    System.out.println( "The total is " + total );
                    
                } while ( roll1 != roll2 );
                
                System.out.println();
            }
        }      
    

Picture of the output

Assignment #71