Arrays of superclasses and subclasses Help!
say I have a class 'A' and a class 'B' which extends A. I want to make an array with instances of both class A and B but I keep getting an ArrayStoreException.
public class A
public class B extends A
Array = new B();