Heap Completed
This commit is contained in:
31
com/xgiovio/ArrayListCompleteBinaryTreeTest.java
Normal file
31
com/xgiovio/ArrayListCompleteBinaryTreeTest.java
Normal 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());
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user