console based quadratic formula calculator in Java