title: AbsoVal.java:11: error: class DoubAbso is public, should be declared in a file named DoubAbso.java public class DoubAbso {
body: <p><img src="https://i.stack.imgur.com/RDheW.png" alt="enter image description here" /></p>
  <p>This is my code and after compiling it, I received the error in the title. Any help?</p>
  <p>I tried switching AbsoVal with DoubAbso and vice versa but nothing worked.</p>