結果 : how to write a priority queue in java