摘要: 1.求字符串长度(字符个数):length() String str1 = "this is old str"; //1.求字符串长度 int length = str1.length(); //length=15 2.根据下标索引查询字符:charAt() //2.根据下标索引查询字符 char 阅读全文
posted @ 2020-11-08 18:41 JacksonLiyq 阅读(138) 评论(0) 推荐(0) 编辑