摘要:
import java.util.Scanner; public class Number { private static int i = 0; public Number() { i++; } public static int getNumber() { return i; } public 阅读全文
摘要:
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 阅读全文