Java 1.5: mathematical formula parser
问题 Hello i often develop JTableModels in which some cells must contain the result of apliying a certain simple mathematical formula. This formulas can have: Operators (+,-,*,/) Number constants Other cell references (which contains numbers) Parameters (numbers with a reference name like "INTEREST_RATE") I often resolve it making a little calculator class which parses the formula, which syntax i define. The calculator class uses a stack for the calcs, and the syntax uses allways a Polish notation