1import java.util.*;
2
3Queue<Integer> queue = new LinkedList<Integer>();
4// use non-primative types when constructing
5
6// to add a value to the back of queue:
7queue.add(7);
8
9// to remove and return front value:
10int next = queue.remove();
11
12// to just return front value without removing:
13int peek = queue.peek();