数字转为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<n;i++) { 7 int text_num=scanner.nextInt(); 8 char text=(char)text_num; 9 System.out.print(text); 10 } 11 } 12 }
万事走心 精益求美