public class Sum extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Sum()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(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(Stack stack) throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionCopyright © 2018. All rights reserved.