Simple Bhaskara calculator written in Java