Class InfixToRPNSolution
java.lang.Object
|
+--InfixToRPNSolution
- All Implemented Interfaces:
- IInfixToRPN
- public class InfixToRPNSolution
- extends Object
- implements IInfixToRPN
Infix to RPN translator.
Method Summary |
String |
translate(String anInfix)
Returns the RPN representation of the
given infix notation expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfixToRPNSolution
public InfixToRPNSolution()
- Constructs a new translator.
translate
public String translate(String anInfix)
- Returns the RPN representation of the
given infix notation expression.
- Specified by:
translate
in interface IInfixToRPN
- Parameters:
anInfix
- expression in infix to translate