package xiao;
public class cools {
static int i=0;
public static void showcools() {
i=i+1;
System.out.println("访问次数:"+i+"次");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
cools.showcools();
cools sm1=new cools();
sm1.showcools();
}
}
public class cools {
static int i=0;
public static void showcools() {
i=i+1;
System.out.println("访问次数:"+i+"次");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
cools.showcools();
cools sm1=new cools();
sm1.showcools();
}
}