已收藏
收藏
string类能不能使用"=="?
“==”比较的是数值
如果str1余str2进行==;比较的是物理地址比较
内容比较用 equals();
所以string内容比较用的是 equals()方法