Question: how to solve quadratic equation in java?
Answer: Calculate the determinant value (b*b)-(4*a*c).
If determinant is greater than 0 roots are [-b +squareroot(determinant)]/2*a and [-b -squareroot(determinant)]/2*a.
If determinant is equal to 0 root value is (-b+Math.sqrt(d))/(2*a)