Java Queue/heap HELP
Create a d-heap class. Use the MyBinaryHeap as a starting point.Ensure all methods from MyBinaryHeap are modified to work on ad-heap, where the d value is provided to the constructor ordefaulted to 2 if not provided.
Ensure all methods are time bound based on what was discussed inthe chapter/class about d-heaps.
Include a tester class to show this works on different values ofd.
==========================================================================/* * d-Heap shell class * Make sure to complete all methods */public class MyHeap<E extends Comparable<? super E>> { private static final int DEFAULT_CAPACITY = 1; private int currentSize; private E[]
PayPal Gateway not configured
PayPal Gateway not configured