//字符串转ASCII码
public static void fun3(){
String s = "面试成功";
char[] chars = s.toCharArray();
for(int i = 0; i < chars.length; i++){
System.out.println(chars[i]+" "+(int)chars[i]);
}
}
//把ASCII转字符串
public static void fun4(){
System.out.println("ASCII转字符串------------------");
String s = "38754,35797,25104,21151";
String[] chars = s.split(",");
for(int i = 0; i < chars.length; i++){
System.out.println(chars[i]+" "+(char)Integer.parseInt(chars[i]));
}
}