==与equals
1. 本质区别"=="是一个boolean运算符, 而equals是属于Object Class的一个方法
2. 虽然二者返回均为boolean, 但是参考"Compares this object against the specified object. The result is true
if and only if the argument is not null
and is a Character
object that represents the same char
value as this object. ", 不难发现equals比较重点在" char
value". 而"=="用于比较非基本类型数据时, 比较的是引用的地址.