import java.util.*;

/**
 * Simple implementation of a queue.
 */
public class Queue {
    Vector queue = new Vector();
    
    /** Enqueues an object. */
    void add(Object object) {
        queue.add(object);
    }
    
    /** Dequeues an object. */
    Object get() {
        return queue.remove(0);
    }
    
    /** Enqueues a whole collection of objects. */
    void addAll(Collection collection) {
        queue.addAll(collection);
    }
    
    /** Tests if the queue is empty. */
    boolean isEmpty() {
        return queue.isEmpty();
    }
}