Write a JAVA program to solve the following problem. Pleaselabel your file appropriately. 1. The roots (rl and r2) of thequadratic equation axbxc0, where a, b, & c are real numbers,and a 0, are given by the following formulas: -b-b-4ac 2a rl 2- 2aIn these formulas the term b2-4ac is called the discriminant: Ifb2-4ac 0, so the equation has a single repeated root. This needs tobe done using a method and looped 3 times.
OR
OR