Assignemnt #85 Baby BlackJack!

Code

/// Name:JJ Deng
/// Period: 6
/// Program Name: Baby Blackjack
/// File Name: Blackjack.java
/// Date Finished: 2/26/2016
  
        import java.util.Scanner;
        import java.util.Random;
          
         public class BlackJack
          {
              public static void main( String[] args )
              {
                  Random r = new Random();
                  
                  int r1, r2, r3, r4, t1, t2;
                  
                  r1= 1+ r.nextInt(6);
                  r2= 1+ r.nextInt(6);
                  t1= r1+ r2;
                  
                  System.out.println( "Baby Blackjack! ");
                  System.out.println( " ");
                  System.out.println( "You drew" + r1 + "and " + r2);
                  System.out.println( "Your total is " + t1);
                  
                  r3= 1+ r.nextInt(6);
                  r4= 1+ r.nextInt(6);
                  t2= r3+ r4;
                  System.out.println( " ");
                  System.out.println( "The dealer has " + r3 + "and " + r4);
                  System.out.println( "Dealer’s total is " + t2);
                  System.out.println( " ");
                  if ( t1>t2 )
                  {
                      System.out.println( "YOU WINNN OWOOOHAHAH! ");
                  }
                  else
                  {
                      System.out.println( "YOU LOSEE SCKER! ");
                  }
              }
         }

  

Picture of the output

Assignment 89