Use Object as the element type for the array or use an ArrayList. public class Bar< C> public C[] a; ...
hyperpolyglot.org