Java tutorial
import java.util.LinkedList; public class Main { public static void main(String[] argv) throws Exception { LinkedList queue = new LinkedList(); Object object = ""; // Add to end of queue queue.add(object); // Get head of queue Object o = queue.removeFirst(); } }