public class NextChar { public static void main(String[] args) { char c = 65; // 'A' System.out.println(c); // Print 'A' System.out.println( (int) c ); // Tell Java to print c as an int c = (char) (c + 1); System.out.println(c); // Prints 'B' System.out.println( (int) c ); // Tell Java to print c as an int } }