I have classes A and C in package abc. A has a static method showA(). Now I want to use this method in C.How do I do this?
package abc;
public class A{
public void static showA()
System.out.println("I am in A");
}
}
package abc;
public class C{
public void static showC(){
A.showA();
System.out.println("I am in C");
}
}
Now while compiling C it shows that, cannot find variable A. How to resolve this?