(String) str.trim() 该方法返回一个复制该字符串的开头和结尾的白色空格去掉,或字符串,如果它没有头或尾空白.
(Boolean) str.contains(str1) 判断 str 中是否包含str1

(String) str.replace("str1","str2")

(String) str.replaceAll("str1","str2")

(String) str.replaceFrist("str1","str2")

 字符串替换 返回 str 字符串 中str1 替换 成str2 后的字符串

   
   
   
   
   
   
   

相关文章:

  • 2021-11-18
  • 2022-02-07
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-09-07
  • 2022-01-30
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案