java - IntelliJ Main Class Error -


i receiving error states need specify main class. new java , intellij not know specify. here example working on:

public class grades {     public static void main(string[] args)     {         int grade1 = 95;     //first grade         int grade2 = 88;     //second grade         int grade3 = 76;     //third grade          //calculate average         int avggrade = (grade1 + grade2 + grade3)/3;          //print results         system.out.print("average = ");         system.out.println(avggrade);     }//end of main method }//end of class 

i appreciate suggestions!

a main class 1 contains entry-point (in java, that's main method). main class grades.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -