To avoid Java compile error

All general topics that Dev Skill members should discuss.

To avoid Java compile error

by devskill » Thu Jul 21, 2016 7:39 am

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.
User avatar
Site Admin
Posts: 118
Joined: Tue Feb 02, 2016 10:24 pm

Who is online
Users browsing this forum: No registered users and 1 guest