java equals

来源:互联网 发布:ftp 端口 tcp还是udp 编辑:程序博客网 时间:2024/06/06 07:48

comparison function for String:

we should not use "==", for it compares the address of the two arguments instead of the contains.

so we use a.equals(b);

 



0 0
原创粉丝点击