public class Sum extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Sum()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(java.util.Stack stack)
Calculates the result of summing up all parameters, which are assumed to
be of the Double type.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic void run(java.util.Stack stack)
throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionhttp://www.singularsys.com/jep Copyright © 2007 Singular Systems