public class Main { public static void main(String[] args) throws Exception { char c = 'A'; int i = (int) c; // i == 65 DECIMAL } }