数字转为ASCII

 1 import java.util.Scanner;
 2 public class 数字转化为ascii {
 3     public static void main(String[] args) {
 4         Scanner scanner=new Scanner(System.in);
 5         int n=scanner.nextInt();
 6         for(int i=0;i) {
 7             int text_num=scanner.nextInt();
 8             char text=(char)text_num;
 9             System.out.print(text);
10         }
11     }
12 }

 

转载于:https://www.cnblogs.com/kongchung/p/9729237.html

你可能感兴趣的:(数字转为ASCII)