public BinaryHeap( AnyType [ ] items ) {
currentSize = items.length;
array = (AnyType[]) new Comparable[ ( currentSize + 2 ) * 11 / 10 ];
int i = 1;
for( AnyType item : items )
array[ i++ ] = item;
buildHeap( );
}
为什么是array.length = (currentSize + 2) * 11 /10
?