Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ArrayDeque 应该只支持在末端的插入和删除,也就是在前端和后端都支持。如果可以从队列之间删除一个元素,是否违反了队列的默认行为?
poll(应该用于访问队列)和remove(用于从集合中删除对象,由Collection接口定义)之间有区别
poll
remove