我有一個方法 「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