Updated NumberStack Java Program