Wat is this error?

Main.java:2: error: class QUADRATIC is public, should be declared in a file named QUADRATIC.java
public class QUADRATIC {

@KUNAL.SHARMA5724510,
Change your class name to Main instead of QUADRATIC. Also, you need to follow the correct input format. There is no input for test cases in this question.

  1. If D < 0,
    2.1 print Imaginary
  2. if D == 0,
    3.1 print Real and Equal
    3.1 Calculate roots using formula ( - b + D) / (2 * a) and (- b - D)/ (2 * a)
    3.2 Print the roots
  3. If D > 0,
    4.1 print Real and Distinct
    4.2 Calculate roots using formula ( - b + D) / (2 * a) and (- b - D)/ (2 * a)
    4.3 print the roots (in non-decreasing order)
  4. End

Also print the required strings as mentioned in the question. If the roots are real and distinct print “Real and Distinct” and so on as mentioned in the question.