Assignemnt #62 and Dice Doubles

Code

      ///Name: Dakota Donahue
      ///Period: 5
      ///Project Name: Dice Doubles
      ///File Name: DiceDoubles.java
      ///Date: 1/12/2016
      
      import java.util.Random;

      public class DiceDoubles
      {
          public static void main ( String[] args )
          {
              Random r = new Random();
              
              int a, b;
              
              a = 1 + r.nextInt(6);
              b = 1 + r.nextInt(6);
              
              System.out.println( " Here comes the dice! " );
              
              System.out.println( "/n Roll #1: " + a );
              System.out.println( "/n Roll #2: " + b );
              
              int c = (a+b);
             
              System.out.println( " The total is " + c + " ! " );
              
              while ( a != b )
              {
                  a = 1 + r.nextInt(6);
                  b = 1 + r.nextInt(6);
      
                  System.out.println( " Here comes the dice! " );
      
                  System.out.println( "/n Roll #1: " + a );
                  System.out.println( "/n Roll #2: " + b );
      
                  c = (a+b);
      
                  System.out.println( " The total is " + c + " ! " );
              }
          }
      }
    
ALettertoYourself