How to convert int to char in Java?

To convert int to char in Java, do this: (char)intValue.

Here's how you do it:

int intNumber = 123;
char intNumberAsChar = (char)123;

System.out.println(intNumber); // 123
System.out.println(intNumberAsChar); // {