- 博客(1)
- 收藏
- 关注
原创 Java String中的indexof 和 substring 用法
indexofString indexof 包含四种方法,如下:indexof(int ch)查找特定字符第一次出现在字符串中的位置并返回int,位置从0开始。如果未找到则返回 -1. ch 为字符串的ASCII码。indexof(int ch,int fromIndex )返回从fromIndex 的位置开始查,字符在字符串中出现的位置。indexof (String str)同 indexof
2016-06-30 19:04:44 844
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人