import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.Random;
import java.util.Scanner;
/**
 * Test
 * 
 * @author APCSA2014-15 
 * @version 2015-03-06
 */
public class Zoo
{
    public static  void main(String[] args) throws InterruptedException 
    {
        List<Animal> animals = new ArrayList<Animal>();

        System.out.println("Welcome to the Zoo!\n");
        System.out.print("Building the cages");
        delayDots();
        System.out.print("Populating the animals");
        populateAnimals(animals);
        delayDots();
        System.out.print("Hiring zookeepers");
        delayDots();

        Scanner in = new Scanner(System.in);
        System.out.println("\nYou are standing in a wondrous zoo. What would you like to do?");
        System.out.println("Type help to find out what you can do.\n");
        String text = in.nextLine();
        String msg = "";
        while(!text.equals("leave"))
        {
            switch(text)
            {
                case "help" : msg = "So far we can only leave and ask for help.";
                                break;
                default : msg = "You flail helplessly with indecision.";
            }
            System.out.println("\n" + msg);
            System.out.println("\nYou are standing in a wondrous zoo. What would you like to do?\n");
            text = in.nextLine();
        }
        
        System.out.println(Math.random() < .8 ? "\nHave a nice day!  Hope you come back!" : "\nAn escaped lion eats you on your way out.  Sorry!");

    }


    /**
     * This prints an ellipses with 1 second between each period
     * It then moves to the next line.
     */
    public static void delayDots(int dotAmount) throws InterruptedException 
    {
        for (int i=0; i<dotAmount; i++) {
            TimeUnit.SECONDS.sleep(1);
            System.out.print(".");
        }
        System.out.println();
    }
    
    /**
     * This prints an ellipses with 1 second between each period
     * It then moves to the next line.
     */
    public static void delayDots() throws InterruptedException 
    {
        delayDots(3);
    }

    /**
     * This is where we will all collaborate.
     * Construct your animal and add it to the List
     * @param animals the list containing all the zoo animals
     */
    public static void populateAnimals(List<Animal> animals)
    {
        Bear bear1 = new Bear("Care", "There's a weird symbol on his stomach and rainbows shooting from it.  That can't be healthy.", "A fluffy cloud.");
        Bear bear2 = new CircusBear("Fez", "This bear wears a fez and looks somewhat forlorn.", "colorful beach ball");
        Frog frog1 = new Frog();
        Frog frog2 = new PrinceFrog();
        animals.add(bear1);
        animals.add(bear2);
        animals.add(frog1);
        animals.add(frog2);
        Shark shark1 = new Shark("Jaws", "All you see are rows upon rows of teeth.");
        animals.add(bear1);
        animals.add(bear2);
        animals.add(shark1);
        Tiger tiger1 = new Tiger("Bob Smith", "This tiger loves to eat and sleep.");
        animals.add(tiger1);
        
        Deer deer1 = new Deer("Lily", "This is a cute cute deer.");
        Deer deer2 = new Bambi("Bambi", "Hi! This is Bambi!");
        animals.add(deer1);
        animals.add(deer2);
        
        Duck duck1 = new Duck("Wow, that duck has 17 inch arms. He is a swole duck.", "Barbara Streisand");
        Duck ducktator = new Duck("The duck seems to be leading all the other ducks in unison to mine the rocks.....", "Ducktator Kim Duck Un");
        animals.add(ducktator);
        animals.add(duck1);
        Dragon dragon1 = new Dragon("Swag Master", "Very unpleasant attitude, he refuses to cooperate with any authority.”);
Dragon dragon2 = new Dragon(“Wisdom”, “Having lived for centuries, this old, white-bearded dragon speak with more authority than the zoo director himself.”);
animals.add(dragon1);
animals.add(dragon2);
    }
}


@@ -1097,32 +1097,16 @@
 help.%22;%0A
-                
         
@@ -1120,16 +1120,16 @@
  break;%0A
+
         
@@ -1397,25 +1397,17 @@
       %7D%0A
-        
 %0A
+
         
@@ -1554,17 +1554,16 @@
 %0A    %7D%0A%0A
-%0A
     /**%0A
@@ -1919,21 +1919,17 @@
 ;%0A    %7D%0A
-    
 %0A
+
     /**%0A
@@ -3019,16 +3019,18 @@
         
+//
 Tiger ti
@@ -3098,32 +3098,34 @@
 eep.%22);%0A        
+//
 animals.add(tige
@@ -3129,24 +3129,16 @@
 iger1);%0A
-        
 %0A       
@@ -3321,17 +3321,9 @@
 2);%0A
-        
 %0A
+
     
@@ -3752,20 +3752,28 @@
 thority.
-%E2%80%9D
+%22
 );%0A
+        
 Dragon d
@@ -3796,19 +3796,19 @@
 gon(
-%E2%80%9C
+%22
 Wisdom
-%E2%80%9D, %E2%80%9C
+%22, %22
 Havi
@@ -3922,12 +3922,20 @@
 elf.
-%E2%80%9D
+%22
 );%0A
+        
 anim
@@ -3952,16 +3952,24 @@
 agon1);%0A
+        
 animals.

fix some zoo issues