Hi there again!
I am wondering about this strange thing about using public modifier in my classes and error messages afterwards when the files being compiled.
Like, let's say, my code look like this
public class A {
}
public class Tester {
public void main(
String args[]){
}
}
Error message is:
C:\javasert\JavaSertHarj\src\JavaSertifikaatti\JC16102003.java:8: class A is public, should be declared in a file named A.java
public class A {
^
C:\javasert\JavaSertHarj\src\JavaSertifikaatti\JC16102003.java:11: class Tester is public, should be declared in a file named Tester.java
public class Tester {
I am not getting the point. Pls could anyone help me with this?
Thanks!
-janne-