在 Queue 中 poll()和 remove()有什麼區別?

remove() ,若是隊列爲空的時候,則會拋出異常

而poll()只會返回nullpost

相關文章
相關標籤/搜索