public class test3112<Key extends Comparable<Key>, Value> {
class Item{ Key key; Value val; } private Item[] item; private int n = 0; public test3112(int capacity) { item = (Item[]) new Comparable[capacity];//出现类型转换错误 }