Assignment #56 and Fortune Cookie

Code

       //Name: Mark Katz
    ///Period: 6
    ///Program Name: Fortune Cookie
    ///File Name: fcookie.java
    ///Date Finished: 10/22/15 
    

 import java.util.Random;
    
    public class fcookie
    {
        public static void main (String[] args)
        {
            Random r = new Random();
            
            int words = 1 + r.nextInt(6);
            int lotto1 = 1 + r.nextInt(54);
            int lotto2 = 1 + r.nextInt(54);
            int lotto3 = 1 + r.nextInt(54);
            int lotto4 = 1 + r.nextInt(54);
            int lotto5 = 1 + r.nextInt(54);
            int lotto6 = 1 + r.nextInt(54);
            
            if (words == 1)
            {
                System.out.println("Life only lasts a life time so make it worth it");
                System.out.println("  " + lotto1 + " - " + lotto2 + " - " + lotto3 + " - " + lotto4 + " - " + lotto5 + " - " + lotto6 );
            }
            
            else if (words == 2)
            {
                System.out.println("Don't listen to nick");
                System.out.println("  " + lotto1 + " - " + lotto2 + " - " + lotto3 + " - " + lotto4 + " - " + lotto5 + " - " + lotto6 );
            }
            
            else if (words == 3)
            {
                System.out.println("Nick isn't very smart");
                System.out.println("  " + lotto1 + " - " + lotto2 + " - " + lotto3 + " - " + lotto4 + " - " + lotto5 + " - " + lotto6 );
            }
            
            else if (words == 4)
            {
                System.out.println("You will pick up some money on the ground, but it will be fake");
                System.out.println("  " + lotto1 + " - " + lotto2 + " - " + lotto3 + " - " + lotto4 + " - " + lotto5 + " - " + lotto6 );
            }
            
            else if (words == 5)
            {
                System.out.println("Tomorrow is a new day, unless the world ends");
                System.out.println("  " + lotto1 + " - " + lotto2 + " - " + lotto3 + " - " + lotto4 + " - " + lotto5 + " - " + lotto6 );
            }
        
            else if (words == 6)
            {
                System.out.println("Panda express makes you fart a lot");
                System.out.println("  " + lotto1 + " - " + lotto2 + " - " + lotto3 + " - " + lotto4 + " - " + lotto5 + " - " + lotto6 );
            }
        }
    }
    

Picture of the output

Assignment56