Method Summary |
|
public synchronized void | clearStack() Clears the stack. |
public synchronized void | doubles() Duplicates the elements in the stack. |
public static StackModel | getInstance() Get the single instance of StackModel object. |
public synchronized String | pop() Pops a string number out of the stack. |
public synchronized void | push(String number) Pushes a string object onto the stack. |
public Object[] | toArray() Return a copy of the stack as an array. |
public synchronized String | top() Gets top element of the stack. |