大家来帮忙一下一题
代码如下:class Count{
public int num;
Count(int num){
this.num=num;
}
}
public class test1{
public static void main(String[]args){
int times=0;
static void increment(Count a,int times){//静态方法
count++;//此中的count是什么
times++;
}
Count count1=new Count(0);
for(int i=0;i<50;i++)
increment(count1,times);
System.out.println("count1 is "+count1.num);
System.out.println("times is"+times);
}
}