charAt()和toCharArray()charAt(intindex)-获取单个字符这是最常用、最直接的方法,用于获取字符串中指定位置的字符,语法:charcharAt(intindex)参数:index:你想要获取的...