/*
 * @topic T01415 Queue Object Demo
 * @brief MyGenericQueue class
*/
package pckg;
import java.util.LinkedList;

public class MyGenericQueue<X>
{
    private LinkedList<X> list = new LinkedList<X>();

    public void push(X item)
    {
        list.addFirst(item);
    }

    public X pull()
    {
        return list.removeLast();
    }

    public int size()
    {
        return list.size();
    }

}