Assignment #57 and Dice

Code

      /// Name: Jason Kim
      /// Period: 7
      /// Program Name: Dice
      /// File Name: Dice.java
      /// Date Finished:10/29/15
      
      import java.util.Random;
      
      public class Dice
      {
          public static void main (String[]args)
          {
              int firstRoll, secondRoll;
              Random r = new Random();
              firstRoll = 1 + r.nextInt(6);
              secondRoll = 1 + r.nextInt(6);
              
              System.out.println("Here comes the dice!");
              System.out.println("Roll #1: " + firstRoll );
              System.out.println("Roll #2: " + secondRoll );
              System.out.println("The total is " + (firstRoll + secondRoll) + "!");
          }
      }
    

Picture of the output

Assignment57