com.microduo.commons.util
类 ArithmeticCalculator

java.lang.Object
  继承者 com.microduo.commons.util.ArithmeticCalculator

public class ArithmeticCalculator
extends java.lang.Object

Title: 四则混合运算计算器

Description: 可计算带括号的加、减、乘、除、乘方、数学表达式

Copyright: Copyright (c) 2005

Company: Microduo.com

版本:
1.0
作者:
not attributable

构造方法摘要
ArithmeticCalculator()
           
 
方法摘要
 double calculat(java.lang.String exp)
          计算
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ArithmeticCalculator

public ArithmeticCalculator()
方法详细信息

calculat

public double calculat(java.lang.String exp)
                throws WrongExpressionException
计算

参数:
exp - String 数学表达式
返回:
double 返回结果
抛出:
WrongExpressionException - 当表达式有错误时会抛出此异常