Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
D
E
I
M
P
D
doCalculation(String, String, String)
- Method in class
myArithmetic
performs the appropriate math and returns the result
E
evaluateString(String)
- Method in class
myArithmetic
this main method of the class evaluates the arithmetic expression
I
isNumber(String)
- Method in class
myArithmetic
figures out if the parameter is a number
isOperator(String)
- Method in class
myArithmetic
figures out if the parameter is an operator
isSpace(String)
- Method in class
myArithmetic
figures out if the parameter is a space
M
main(String[])
- Static method in class
myArithmetic
main creates a myArithmetic object, calls the 'evaluateString()' method and prints the result
myArithmetic
- Class in
<Unnamed>
The myArithmetic class receives an arithmetic expression in the form of a String and evaluates it.
myArithmetic()
- Constructor for class
myArithmetic
The constructor allocates memory for the two ArrayStack objects that the class employs.
P
precedence(String)
- Method in class
myArithmetic
Returns the precedence of a given operator: ^ * / + -
D
E
I
M
P
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes