1 public class MyAscii { 2 public static void main(String[] args) { 3 asciiToString(251);//ASCII转换为字符串 4 stringToAscii("√");//字符串转换为ASCII码 5 } 6 7 public static void asciiToString(int num){ 8 System.out.println(num +" -> "+(char)num); 9 } 10 11 public stati...
ascii码的范围最大只能到127