I made two
java files in the same directory.
// Pac.java - first file
package pac;
public class Pac{
}
// SPac.java - second file
package pac;
public class SPac{
Pac p;
}
When I compiled SPac.java, the compiler complained that it couldn't understand the symbol Pac.
Then I deleted package statement from both of them and that time Spac.java was compiled fine.
Why is that?
Please give me some help.
Thanks in advance.