You're reading in your +-*/ with nextDouble() but none of those are doubles.