Page 1 of 1

To avoid Java compile error

PostPosted: Thu Jul 21, 2016 7:39 am
by devskill
Never use package name when you submit code. Please check at top of java code template, /* package whatever; // don't place package name! */

Also It is good if you use this format for class name and accessibility:

Code: Select all
class MyClass
{
   public static void main (String[] args) throws java.lang.Exception
   {
      // your code goes here
   }
}


Instead of making your class public and using Main as class name. This will help you avoid compile error.