假如:
String str = "abcd";
那么:
str.charAt(0)
为"a"
str.charAt(1)
为"b"
str.charAt(2)
为"c"
str.charAt(3)
为"d"
Java中str.charAt(i);的作用
最新推荐文章于 2023-10-15 20:22:35 发布
假如:
String str = "abcd";
那么:
str.charAt(0)
为"a"
str.charAt(1)
为"b"
str.charAt(2)
为"c"
str.charAt(3)
为"d"