char ch = 'A'; int ascii = (int) ch; System.out.println("ASCII码:" + ascii); 复制代码 使用Character.getNumericValue()方法: char ch = 'A'; int ascii = Character.getNumericValue(ch); System.out.println("ASCII码:" + ascii); 复制代码 使用Character.toString().codePointAt()方法: char...
https://blog.csdn.net/zsysingapore/article/details/123928356 JAVA实现打印ascii码表代码 http://www.zzvips.com/article/94333.html