Java.lang.string.cahrAt()方法介绍

如图所示,charAt()方法用于返回指定索引处的字符,范围是0-length()-1.

通过测试可以看到,下标为2的内容为3

posted @ 2020-11-15 10:41  Demo4  阅读(124)  评论(0编辑  收藏  举报