第四章第八题(给出ASCII码对应的字符)(Find the character of an ASCII code)
-
*4.8(给出ASCII码对应的字符)编写一个程序,得到一个ASCII码的输入(0~127之间的一个整数),然后显示该字符。
下面是一个运行示例:
Enter an ASCII code: 69
The character for ASCII code 69 is E*4.8(Find the character of an ASCII code) Write a program that receives a character and displays its ASCII code (an integer between 0 and 127).
Here is a sample run:
Enter an ASCII code: 69
The character for ASCII code 69 is E -
参考代码:
package chapter04;
import java.util.Scanner;
public class C