使用String的contains方法判断字符串是否包含逗号,str.contains(“,”),返回true则存在逗号,也可用indexOf(“,”) ˃= 0实现相同功能。
在线咨询: QQ交谈
邮件:HI@E.KD.CN