java判断字符串包含字符的方法:1、使用startsWidth函数,返回值为true说明包含;2、使用contains函数,返回值为true说明包含;3、使用indexOf函数,返回值不为-1说明包含。
技术文章 / 下载软件趣味内容 / 专业带飞