Assignemnt #56 and Fortune Cookie

Code

    ///Name: Daniel Tiffany-Appleton
    ///Period: 7
    ///Program Name: Fortune Cookie 
    ///File Name: FortuneCookie
    ///Date Finished: 11/13/15
    
    import java.util.Random;
    
    public class FortuneCookie
    {
        public static void main ( String[] args )
        {
        
            Random r = new Random();
            int fortune, a, b, c, d, e, f;
            fortune = 1 + r.nextInt(6);
            if ( fortune == 1 )
            {
                System.out.println( "Fortune cookie says: \"Do not cross the provider of thiy nooky\".");
            }
            
            else if ( fortune == 2 )
            {
                System.out.println( "Fortune cookie says: \"Love will never appear for you\".");
            }
            
            else if ( fortune == 3 )
            {
                System.out.println( "Fortune cookie says: \"Growing old is manditory; growing up is optional\".");
            }
            
            else if ( fortune == 4 )
            {
                System.out.println( "Fortune cookie says: \"Learn from the past; live in the present, but plan for the future \".");
            }
            
            else if ( fortune == 5 )
            {
                System.out.println( "Fortune cookie says: \"Life isn't worth living, if one just lives\".");
            }
            
            else if ( fortune == 6 )
            {
                System.out.println( "Fortune cookie says: \"Time stops for no one\".");
            }
            
            a = 1 + r.nextInt(54);
            b = 1 + r.nextInt(54);
            c = 1 + r.nextInt(54);
            d = 1 + r.nextInt(54);
            e = 1 + r.nextInt(54);
            f = 1 + r.nextInt(54);
                
            System.out.println( a + " - " + b + " - " + c + " - " + d + " - " + e + " - " + f );
            System.out.println( " " );
        }
    }


    

Picture of the output

Assignment 56