public static void Demo3() {
String s1 = "adasdsada";
int ch =s1.charAt(3);
System.out.println(ch);
}
//String 类的数组角标查找法
public static void Demo2() {
String s1 = "abcdefghijklmnopqrstuvwxyz";
int index1 = s1.indexOf('l');
int index2 = s1.indexOf('b');
System.out.print(index1+" ");
System.out.print(index2+" ");
String s2 ="大家好才是真的好";
int index3 = s2.indexOf('是');
System.out.println(index3);
}
//将指定的字符串大小写和符号分别找出来
public static void demo1() {
String str = "ABCDEabcde123456@#$%^&";
int big = 0; //大写
int small = 0; //小写
int num = 0; //数字
int other = 0; //其他的