李冰岩

导航

 

2021年2月23日

摘要: length()——获取字符串长度 1. String str = "good good study"; 2. int size = str.length(); //size=15 indexOf(String s)——获取字符串s在指定字符串中首次出现的索引位置,不存在返回-1 lastIndex 阅读全文
posted @ 2021-02-23 11:41 李冰岩 阅读(270) 评论(0) 推荐(0)