我有一个方法 “B(类克)”,在一个静态类 “一”如何从另一个类的静态类中调用方法?
所以 myclass.java包含...
public static class a{
public void b(Class g){
....
}
}
比在相同myclass.java
另一种方法public void c(){
if(...){}
else{
b(); //i want to call b but i get an error asking me to create the method
}
其更改为公共静态无效B(...);然后从c()中调用a.b(...); – Ron 2011-03-22 05:12:16