charat() 方法用于返回指定索引處的字符。該方法的語法如下:
char charAt(int index)
其中,index 表示要返回的字符的索引位置,索引從 0 開始。
charat() 方法的功能主要包括: