public int getResult() {
			this.toPostfix();

			Stack<Element> tempStack = new Stack<Element>();

			for (Element e : elements) {
				if (e.type == Element.TYPE_NUMBER) {
					tempStack.push(e);
				} else {
					Element tempElement;
					int rightValue = tempStack.pop().value;
					int leftValue = tempStack.pop().value;
					switch (e.value) {
						case '+' :
							tempElement = new Element(Element.TYPE_NUMBER, leftValue+rightValue);
							tempStack.push(tempElement);
							break;
						case '-' :
							tempElement = new Element(Element.TYPE_NUMBER, leftValue-rightValue);
							tempStack.push(tempElement);
							break;
						case '*' :
							tempElement = new Element(Element.TYPE_NUMBER, leftValue*rightValue);
							tempStack.push(tempElement);
							break;
						case '/' :
							tempElement = new Element(Element.TYPE_NUMBER, leftValue/rightValue);
							tempStack.push(tempElement);
							break;
					}
				}
			}

			return tempStack.pop().value;
		}