Assignemnt #57, Dice

Code

      /// Name: Alex Pinder
      /// Period: 5
      /// Program Name: Dice
      /// File Name: prog57.java
      /// Date Complete: 12/17/15
      
      import java.util.Scanner;
      import java.util.Random;
      
      public class prog57
      {
          public static void main( String[] args )
          {
              Random r = new Random();
              
              Scanner keyboard = new Scanner(System.in);
              
              int first, second, together;
              
              first = 1 + r.nextInt(6);
              second = 1 + r.nextInt(6);
              together = first + second;
              
              System.out.println( "HERE COMES THE DICE!\n\nRoll#1: " + first + "\nRoll #2: " + second + "\nThe total is " + together + "!" );
          }
      }
    

Picture of the output

Assignment 57