Assignemnt #62 Dice Doubles

Code

    ///Name: Joshua Pell
    ///Period: 6
    ///Project Name: Dice Doubles
    ///File Name: DiceDoubles.java
    ///Date: 12/10/2015
    
 import java.util.Random;
    
    public class Dice2
    {
        public static void main( String [] args)
        {
            Random r = new Random();
            int d1= r.nextInt(6)+1,d2= r.nextInt(6)+1;
            System.out.println("Here comes the SUN");
            System.out.println("Roll #1: "+d1);
            System.out.println("Roll #2: "+d2);
            System.out.println("The total is "+(d1+d2+"!"));
    		while ( d1 != d2 )
    		{
                d1= r.nextInt(6)+1;
                d2= r.nextInt(6)+1;
                System.out.println("Roll #1: "+d1);
                System.out.println("Roll #2: "+d2);
                System.out.println("The total is "+(d1+d2+"!"));
    		}
        }
    }
    

Picture of the output

Assignment 62