JAVA字符串方法

返回特定位置的字符:

String a = "asdf";
char b = a.charAt(2);           //返回'd'
posted @ 2019-02-26 21:11  epiphanyy  阅读(8)  评论(0)    收藏  举报  来源