function Queue() {
	this.__a = new Array();
}

Queue.prototype.enqueue = function(o) {
	this.__a.push(o);
};

Queue.prototype.dequeue = function() {
	if( this.__a.length > 0 ) {
		return this.__a.shift();
	}
	return null;
};

Queue.prototype.first = function() {
	if( this.__a.length > 0 ) {
		return this.__a[0];
	}
	return null;
};

Queue.prototype.size = function() {
	return this.__a.length;
};

Queue.prototype.toString = function() {
	return '[' + this.__a.join(',') + ']';
};

