Returns true if this priority queue is empty. @return true if this priority queue is empty; false otherwise
()
| 43 | * {@code false} otherwise |
| 44 | */ |
| 45 | public boolean isEmpty() { |
| 46 | return n == 0; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Returns the number of ints on this priority queue. |