67,513
社区成员
发帖
与我相关
我的任务
分享
public class Test {
static int a;
/**
*
* @param args
* @return void
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
for (int i = 0; i < 3; i++)
change();
System.out.println(a);
}
static void change() {
a++;
}
}