class dHeap<T extends Comparable<? super T>> implements dHeapInterface<T>
public dHeap(int heapSize) {
dVar = 2;
size = heapSize;
array = (T[]) new Comparable[heapSize];
nelems = 0;
}
public class dHeapTester {
private dHeap<Integer> intHeap;
private dHeap<Integer> dHeap;
private dHeap<String> sHeap;
@Before
public void setUp() {
intHeap = new dHeap<>(5);
sHeap = new dHeap<>(5);
dHeap = new dHeap<>(4, 5);
顶级代码是我的类签名和构造函数,底部是我的测试人员。运行测试程序时我得到一个NoClassDefFoundError,它在初始化过程中发生。为什么我收到此错误? 第三个初始化dHeap正在使用第二个构造函数,它选择每个节点所拥有的子节点而不是二进制