last(): T {
        if (this._data.length === 0) throw "Can not get last of an empty queue.";
        return this._data[this._data.length - 1];
    }