Hi,
while declaring a class as public:
1) A .java file can have one public class at the max (any number of default
and private classes)
2) The name of that .java file should be that public class' name.java (case
sensitive)

J. Vignesh,
B.E( CSE), III year,
Sona College of Technology,
Salem, Tamil Nadu.



On Thu, Dec 6, 2012 at 4:09 AM, Matt Weaver <mwea...@mailbolt.com> wrote:

>  I believe the name of your class should be Main.  See
> http://online-judge.uva.es/board/viewtopic.php?f=31&t=7429 and
> http://acm.uva.es/p/data/p100.java.html
>
>
> On 12/05/2012 04:38 PM, Amir Hossein Sharifzadeh 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 google-code@googlegroups.com.
> To unsubscribe from this group, send email to
> google-code+unsubscr...@googlegroups.com.
> 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 google-code@googlegroups.com.
> To unsubscribe from this group, send email to
> google-code+unsubscr...@googlegroups.com.
> 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 google-code@googlegroups.com.
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to