title: Error: Main method not found in class. can anybody will give me a proper solution for this error please
body: <p>Error:</p>
  
  <pre><code>Error: Main method not found in class app, please define the main method as:
     public static void main(String[] args)
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>class app
  {
      public static void main(String[] args) {
          double accounts[];
          accounts=new double[100];
          accounts[2]=1225.33;
          System.out.println("Account 2 is overdue by $"+accounts[2]);
      }
  }
  </code></pre>
  
  <p>I am using <strong>EditPlus</strong> to run and execute this program.</p>