charAt

字符串String类中有一个charAt方法来获取字符串中的字符

  String s = "nihaoHH";
        s.charAt(1);

  

posted @ 2020-04-15 15:18  恐怖鸟  阅读(198)  评论(0编辑  收藏  举报