Agustin: > I'm trying to use BinaryHeap and i found out that i cannot use > foreach(). My question is, there is any other way to do it?, > can i iterate a BinaryHeap? Please show the code :-) Perhaps you need to look at the head, pop the head item, look at the head, etc. Bye, bearophile