Hi
I have this problem with packages. In the below written code, when I run it without declaring package statement(the very first line in my both .java files), It compiles and executes fine. but when I declare them in the package, it gives me problem in "MyClass.java".. compilation error.. says that
"cannot find symbol" on the line
"MyClass2 sp = new MyClass2()"
Code is :
Can anyone explain why it is so??
Thanks
Manu.
I have this problem with packages. In the below written code, when I run it without declaring package statement(the very first line in my both .java files), It compiles and executes fine. but when I declare them in the package, it gives me problem in "MyClass.java".. compilation error.. says that
"cannot find symbol" on the line
"MyClass2 sp = new MyClass2()"
Code is :
Can anyone explain why it is so??
Thanks
Manu.