java - Error: Main method not found in class. can anybody will give me a proper solution for this error please -
error:
error: main method not found in class app, please define main method as:    public static void main(string[] args) code:
class app {     public static void main(string[] args) {         double accounts[];         accounts=new double[100];         accounts[2]=1225.33;         system.out.println("account 2 overdue $"+accounts[2]);     } } i using editplus run , execute program.
if trying run class need main method. add main method class , put code trying execute inside main method , should execute. post code have it's easier understand trying do.
public static void main(string[] args) {    //code goes here } 
Comments
Post a Comment