How do you use java to calculate the solutions to a quadratic equation?