30的StaticTest那个例子是不是有错
public class StaticTest {
static int i = 47;
public static void main(String[] args) {
StaticTest st1 = new StaticTest();
StaticTest st2 = new StaticTest();
System.out.println(st1.i);
}
}书上写st1.i = 48
public class StaticTest {
static int i = 47;
public static void main(String[] args) {
StaticTest st1 = new StaticTest();
StaticTest st2 = new StaticTest();
System.out.println(st1.i);
}
}书上写st1.i = 48
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货