public static int priority(String operator)
	{
		if (operator.equals("+") || operator.equals("-"))
			return 1;
		else if (operator.equals("*") || operator.equals("/"))
			return 2;
		else if (operator.equals("^"))
			return 3;
		else
			return 0;
	}