import java.util.*;
class getASCLL
{
public static void main(String[] args)
{
Scanner scan=new Scanner(System.in);
System.out.print("请输入一个字符:");
String s=scan.nextLine();
char ch=s.charAt(0);
System.out.println("比输入字符"+s+"的ASCLL大5的字符是:"+(char)(ch+5));
}
}
-------------------------------------------------
新手,不是很正确的代码 |
|