作用:str.charAt(i)
返回字符串str的第 i 个字符。
例如:
String str = "LOVE";
则 str.charAt(0) 为"L" str.charAt(1) 为"O" str.charAt(2) 为"V" str.charAt(3) 为"E"
作用:str.charAt(i)
返回字符串str的第 i 个字符。
例如:
String str = "LOVE";
则 str.charAt(0) 为"L" str.charAt(1) 为"O" str.charAt(2) 为"V" str.charAt(3) 为"E"