|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object smithers.calculator.Calculator
public class Calculator
A calculator.
Constructor Summary | |
---|---|
Calculator()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Runs the calculator program. |
java.lang.String |
parse(java.lang.String input)
Parses the given expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Calculator()
Method Detail |
---|
public java.lang.String parse(java.lang.String input)
input
- the expression to evaluate
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the arguments, if any
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |