public class IntToAscii { public static void main(String[] args) throws Exception { char c = 'A'; int i = (int) c; System.out.println(i); } }