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, setCurNumberOfParameters
public void run(java.util.Stack stack) throws ParseException
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
http://www.singularsys.com/jep Copyright © 2007 Singular Systems