public boolean compare() {
		boolean ans = false;
		double a, b;
		b = Double.valueOf(elementList.pop());
		a = Double.valueOf(elementList.pop());

		switch (elementList.pop()) {

		case ">":
			ans = a > b;
			break;
		case "=":
			ans = a == b;
			break;
		case "<":
			ans = a < b;
			break;
		case ">=":
			ans = a >= b;
		case "<=":
			ans = a <= b;

		default:
			break;
		}
		bool = ans;
		return ans;
	}