Prog62: Dice Double

///Name: Ilana Levy
///Period: 5
///Program Name: Dice Doubles
///File Name: diceDoubles.java
///Date Finished: 9/21/2015

import java.util.Random;

public class diceDoubles
{
        public static void main( String[] args )
        {
                Random r = new Random();
                
                int roll1 = 1 + r.nextInt(6), roll2 = 1 + r.nextInt(6);
                
                System.out.println( "HERE COMES THE DICE!\n" );
                System.out.println( "Roll #1: " + roll1 );
                System.out.println( "Roll #2: " + roll2 );
                System.out.println( "The total is " + ( roll1 + roll2 ) + "!" );
                
                while ( roll1 != roll2 )
                {
                        
                        roll1 = 1 + r.nextInt(6);
                        roll2 = 1 + r.nextInt(6);
                        System.out.println( "Roll #1: " + roll1 );
                        System.out.println( "Roll #2: " + roll2 );
                        System.out.println( "The total is " + ( roll1 + roll2 ) + "!" );
                }
                
                System.out.println(" The total is " + ( roll1 + roll2 ) + "!" );
        }
}