Actually my file is Bartjens.java And I uploaded this file. In the previous email, I told that I can compile and run the program.
I am a professional Java Developer and I know that the file name should the name of the public class! Otherwise, program may not to be compile! I don't know why I am getting this error! I can compile and run the program. Is there someone who is java programmer and member of the ACM-ICPC live archive? On Wed, Dec 5, 2012 at 7:24 PM, mallikarjun na <[email protected]>wrote: > There can be only one public class defined in a file so you are getting > this error. If you are having any ide (integrated developement > environment) if you write all the public class in one file only then for > each public class there will be a separate file created. This is what ide > does on behalf of you. Remember that the file name should be the name of > the public class this is what java defines . Hope so you got the correct > answer . > On Dec 6, 2012 3:08 AM, "Amir Hossein Sharifzadeh" < > [email protected]> wrote: > >> Is there anyone who has submitted problems in uva onlinejudge or ACM-ICPC >> Live Archive? >> I wrote a problem of the ACM ICPC World finals in Java without any >> problem. But I frequently receive the following error: >> Compilation error for submission >> >> Main.java:9: class Bartjens is public, should be declared in a file named >> Bartjens.java >> public class Bartjens { >> ^ >> 1 error >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Code Jam" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
