public static void main(String[] args) {
MyAr m = new MyAr( );
m.method( );
}
public void method( )
{
// put your code here
static int i=0; //这里为什么是错误的啊?
System.out.println(i);
}
}
...全文
657打赏收藏
这里怎么是错误的?关于static
public class MyAr { public static void main(String[] args) { MyAr m = new MyAr( ); m.method( ); } public void method( ) { // put your code here static int i=0; //这里为什么是错误的啊? System.out.println(i); } }