package queue;

import java.util.ArrayList;
import java.util.List;

public class ArrayListQueue<T> implements MyQueue<T> {
	
	private List<T> queue = new ArrayList<T>();
	
	@Override
	public boolean offer(T item) {
		return queue.add(item);
	}
	
	@Override
	public T remove() {
		return queue.removeFirst();
	}
	
	@Override
	public T peek() {
		return queue.getFirst();
	}
	
	@Override
	public int size() {
		return queue.getSize();
	}
	
	
}
