import com.test.foo.A cannot be resolved
IDE I am using is NWDS.
I have a class A which is declared as public, I have a class B which is declared as public final. Both are declared in different packages.
Class A in com.test.foo
Class B in com.test.foo1
I am trying to import a public method from class A to class B but I am getting the above mentioned error in IDE.
Both are in different projects.
Code snippet as below :-
package com.test.foo
public class A {
public static void method1(){
....some code ....
}
}
-----
package com.test.foo1
import com.test.foo.A // i'm getting error here as import cannot be resolved
public final class B {
private method2(){
...... some code....
A.method1(); // import cannot be resolved error
}
}
Can any help help on this?
Thanks in advance for you help :)