1、Queue接口 队列是一种先进先出(FIFO)的数据结构,JAVA中用Queue接口来表示队列。 Queue接口中定义了6个方法: public interface Queue<E> extends Collection<E> { boolean add(e)