Java中怎么获取字符串里面的单个字符?

如题所述

第1个回答  2017-12-27
方法有很多种。
随便一种:
String a= "中国人";
char b=a.charAt(0);
System.out.println(b);本回答被网友采纳
相似回答