The code will help the user solve for all the roots of a quadratic equation
An example of a quadratic is ax^2 + bx + c = 0 where a, b, and c are coefficients of real numbers and a ≠ 0.
The quadratic formula is:
x = −b ± √(b^2 − 4ac)
2a

we can solve for both roots by breaking the formula into 2 parts
x = (-b +√(b^2 − 4ac ) )/(2a) and x = (-b - √(b^2 − 4ac ) )/(2a)
notice one equation has a + and the other has a -.
To code this, the user needs to supply the code the values of a, b, and c from the quadratic equation.
The code will use these values to solve both the + and - versions of the formula.


For testing use these 3 quadratic equations to find the roots of.
1) x^2 + 3x − 4 = 0
2) x^2 - 16 = 0
3) 3x^2 – 8x – 3 = 0


Example x^2 - x - 6 will yield the results x = 3 and x = -2

code needs to be in java