The name of the file must be same as the class name. For Example
File name: Example.java
File contains the class: public class Example {
Good luck
Anirban
Arno Vlastuin wrote:Hello,
I'm compiling some java files and with every file it says the following:
> ./bali/appsignalling/AIT.java:26: Public class bali.appsignalling.AIT must be
defined in a file called "AIT.java".
> public class AIT
> ^
So it says the class defined in file x must be defined in file x. The source for
the above version is:
> public class AIT
> {
> ...
> }
I think it's very weird and have no idea what the problem is. Does anyone know?