(String[] args)
| 2 | |
| 3 | class Main { |
| 4 | public static void main(String[] args) throws Exception{ |
| 5 | Heap<Integer> heap = new Heap<>(); |
| 6 | |
| 7 | heap.insert(34); |
| 8 | heap.insert(45); |
| 9 | heap.insert(22); |
| 10 | heap.insert(89); |
| 11 | heap.insert(76); |
| 12 | |
| 13 | ArrayList list = heap.heapSort(); |
| 14 | System.out.println(list); |
| 15 | |
| 16 | } |
| 17 | } |