摘要: import java.util.Scanner; public class Number { private static int i = 0; public Number() { i++; } public static int getNumber() { return i; } public 阅读全文
posted @ 2018-10-21 17:54 符黑石 阅读(146) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { Foo obj1=new Foo(); Foo obj2=new Foo(); System.out.println(obj1==obj2); }}class Foo{ int 阅读全文
posted @ 2018-10-21 17:45 符黑石 阅读(155) 评论(0) 推荐(0) 编辑