public class A<AnyType extends Comparable> { private AnyType[] arr = null; public A() { arr = (AnyType[])new Comparable[10]; } }