常用的String类方法

indexOf  返回 该字符串中包含指定字符串的位数,如果不包含则返回-1

第03章_面向对象_第06章_常用类_String类

第03章_面向对象_第06章_常用类_String类

第03章_面向对象_第06章_常用类_String类

第03章_面向对象_第06章_常用类_String类


各种数据类型转换为字符串

第03章_面向对象_第06章_常用类_String类

求int类型是几位数,先转成字符串,然后length

sPlit  将字符串 转换为字符串数组,参数为 (指定的分割符号)


第03章_面向对象_第06章_常用类_String类

相关文章:

  • 2022-02-06
  • 2021-05-26
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-10-25
  • 2021-06-22
猜你喜欢
  • 2021-06-28
  • 2021-05-31
  • 2021-10-21
  • 2022-01-19
  • 2021-08-18
  • 2021-11-17
  • 2021-07-18
相关资源
相似解决方案