I'm attempting to push a character into:
Stack<Double> s = new Stack();
By using the following line:
However, when I push the character '7' for example and try to pop it using:
double a = ((Double) s.pop()).doubleValue();
I get the decimal's character value 55 rather than the number 7. What am I doing wrong? What code will fix this?