public class Str {
public static int count;
public Str() {
count ++;
}
public static void main(String[] args){
Str str1 = new Str();
Str str2 = new Str();
Str str3 = new Str();
System.out.println(str1.count);
}
}
Console:3
Java笔试题
最新推荐文章于 2025-05-14 08:16:58 发布
2498

被折叠的 条评论
为什么被折叠?



