Assignment #62 and Dice Doubles

Code

    //Name: Mark Katz
    ///Period: 6
    ///Program Name: Dice Doubles
    ///File Name: dice2.java
    ///Date Finished: 10/26/15 
    

    import java.util.Random;
    
    public class dice2
    {
        public static void main(String[] args)
        {
            
            Random r = new Random();
            
            int r1, r2;
            double total;
            
            r1 = 1 + r.nextInt(6);
            r2 = 1 + r.nextInt(6);
            total = r1 + r2;
            
            System.out.println( "Welcome to the best dice game evr!!!!" );
            System.out.println( "" );
            System.out.println( "Roll 1: " + r1 );
            System.out.println( "Roll 2: " + r2 );
            System.out.println( "Total: " + total );
            
            while ( r1!= r2)
            {
                r1 = 1 + r.nextInt(6);
                r2 = 1 + r.nextInt(6);
                total = r1 + r2;
            
                System.out.println( "Welcome to the best dice game evr!!!!" );
                System.out.println( "" );
                System.out.println( "Roll 1: " + r1 );
                System.out.println( "Roll 2: " + r2 );
                System.out.println( "Total: " + total );
            
            }
        }
    }
    

Picture of the output

Assignment62