22智能在线
新记
判断string是否有相同字符串
如题所述
举报该文章
相关建议 2017-03-03
String str1 = "sss";
String str2 = "sss";
boolean flag = str1.equals(str2);
flag 为true说明相同,反之为不同
温馨提示:内容为网友见解,仅供参考
当前网址:
https://22.t2y.org/zz/c62ss0is6i62iihthfs.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
判断string字符串是否有小数点
string 怎么判断是否包含字符串
如何快速的判断两个string中是否含有相同的字符
c++ string怎样判断字符串里面是否含有某个字符串?
判断字符串中是否有重复字符java
java判断字符串是否有相同的字符
JS判断一个字符串是否含有重复字符
c++ 怎样判断字符串string里面是否含有某个字符串