java什么集合实现 fifo

2024-11-29 05:27:58
推荐回答(2个)
回答1:

java.util.Stack
E pop()Removes the object at the top of this stack and returns that
object as the value of this function.

public boolean add(E e)

Appends the specified element to the end of this Vector.

回答2:

这个不是LIFO么。。。