Heap Completed

This commit is contained in:
2014-05-05 02:41:11 +02:00
parent 5d90623636
commit e1111bb1b9
3 changed files with 138 additions and 57 deletions

View File

@@ -0,0 +1,31 @@
package com.xgiovio;
import tree.binarytree.heap.ArrayListCompleteBinaryTree;
/**
* Created with MONSTER.
* User: xgiovio
* Date: 05/05/2014
* Time: 02:34
*/
public class ArrayListCompleteBinaryTreeTest {
public static void main(String[] args) {
ArrayListCompleteBinaryTree<Integer> a = new ArrayListCompleteBinaryTree<Integer>();
System.out.println(a.isEmpty());
System.out.println(a.size());
a.add(15);
a.add(30);
a.add(25);
System.out.println(a);
System.out.println(a.isEmpty());
System.out.println(a.size());
}
}