Work with Queue<T> (FIFO) in Java

Queue<Integer> intQueue = new LinkedList<Integer>();
intQueue.add(1);
intQueue.add(3);
intQueue.add(5);

int top = intQueue.peek();
//top is 1
int first = intQueue.poll();
//first is 1
int second = intQueue.poll();
//second is 3
int third = intQueue.poll();
//third is 5