While practicing Java I randomly came up with this:
class test { public static void main(String arg[]) { char x=\'A\'; x=x+1;
you have to type cast the result after adding using parenthesis like this:
x='A'; x = (char) (x+1);
else you will get loose of data error.