public class CovariantArrayDemo {

    static class Animal {}
    static class Dog extends Animal {}
    static class Cat extends Animal {}

    public static void main(String[] args) {
        Animal[] animals = new Dog[10];       // Covariance, hmmm
        try {
            animals[0] = new Cat();
        } catch (ArrayStoreException e) {
            System.out.println("Runtime type checking!");
        }
    }
}

@@ -32,114 +32,8 @@
  %7B%0A%0A
-    static class Animal %7B%7D%0A    static class Dog extends Animal %7B%7D%0A    static class Cat extends Animal %7B%7D%0A%0A
     
@@ -108,11 +108,13 @@
 new 
-Dog
+Sheep
 %5B10%5D
@@ -140,12 +140,13 @@
 ce, 
-hmmm
+sadly
 %0A   
@@ -190,11 +190,19 @@
 ew C
-at(
+ow(%22Bessie%22
 );%0A 

Use existing classes for the covariance example