ArcticLight / JRPNMachine

Java Reverse Polish Notation Machine
2 stars 0 forks source link

ParseInt? #4

Closed ArcticLight closed 11 years ago

ArcticLight commented 11 years ago
        default:
            stack.push(new StackMember (Integer.parseInt(inputString)));
            break;

Is there a reason the default is to push an integer rather than a float or double?

hawkw commented 11 years ago

There is a reason, and that reason is Because I'm Not Very Smart.