@SuppressWarnings("unchecked")
	private QueueInterface<T> checkPara(QueueInterface<T> infix) throws DAIllegalArgumentException, DAIndexOutOfBoundsException, UnmatchingParenthesisException
	{
		QueueInterface<T> newInfix = new DynamicArray<T>();
		int openingB = 0;
		int closingB = 0;
		String item = null;
		while(infix.getSize() != 0)
		{
			item = (String)infix.removeFront();
			switch(item)
			{
			case "(":
				openingB++;
				break;
			case ")":
				closingB++;
				break;
			default:
				break;
			}
			newInfix.addLast((T)item);
		}
		if(openingB != closingB)
		{
			throw new UnmatchingParenthesisException();
		}
		
		return newInfix;
	}