demo1 charAt
public class HelloWorld {
public static void main(String args[]){// String args[]字符串数组的意思
String str = "www.baidu.com";
char c = str.charAt(3);// charAt可以获取某一个索引位置的字符;
System.out.println(c);
}
}
标签:字符,String,字符串,7.9,public,charAt
From: https://www.cnblogs.com/pansidong/p/17461323.html