public QueueInterface<String> calculate()
			throws DAIllegalArgumentException, DAIndexOutOfBoundsException {

		if (displayText != "")
			displayTextTop.addLast(displayText);
		if (displayTextTop.getSize() > 2) {
			QueueInterface<String> deque = new DynamicArray<String>();

			while (displayTextTop.getSize() > 0) {
				deque.addLast(displayTextTop.removeFront());
			}
			openP = 0;
			closeP = 0;
			nextShouldBe = FORRSLT;
			return deque;
		}

		return null;
	}