摘要:
重写equals必须重写hashCodepublic boolean equals(Object obj){ if(obj instanceof Name){ Name name = (Name) obj; return (firstName.equals(name.firstName))&&(... 阅读全文
摘要:
public class Test{ public static void main(String[] args){ if(args.length<3){ System.out.println("Usage: java Test \"n1\"\"op\"\"n2\""); Syste... 阅读全文