📅  最后修改于: 2022-03-11 14:52:37.103000             🧑  作者: Mango
char a ='7';//Convert your number to character
System.out.println((int)a);//Convert your character to int and ASCII code will be printed