# Question

I need help with this problem in JAVA, i’m doing a variousmethdos using Scanner. I have to do the next program for thequadratic equation:

This method calculates the quadratic equation (both roots) and print both results.Note: this method does not return anything, since it prints theresult by itself.In the main () method, the method must be invoked quadratic with the corresponding parameters. The signature of the quadratic method is:Public static void quadratic (int a, int b, int c)Method: Quadratic