You must use the special method equals( ) that exists for all objects (not primitives, which work fine with == and !=).

  • 此时,必须使用所有对象都适用的特殊方法equals()。但这个方法不适用于“主类型”,那些类型直接使用==和!=即可。
目录 查词历史