public class FromBase extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
FromBase() |
FromBase(int base) |
FromBase(int base,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromBase(String str,
int base) |
void |
run(Stack s)
Throws an exception because this method should never be called under
normal circumstances.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic FromBase()
public FromBase(int base)
public FromBase(int base,
String prefix)
public void run(Stack s) throws ParseException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Object fromBase(String str, int base) throws NumberFormatException
NumberFormatExceptionCopyright © 2018. All rights reserved.