java cast to character code example
Example 1: int to char java
int c=123;
String s = Integer.toString(c);
for(char ch: s.toCharArray())
System.out.print(ch+",");
Example 2: convert from integer to character java
char a = (char) 65;
int c=123;
String s = Integer.toString(c);
for(char ch: s.toCharArray())
System.out.print(ch+",");
char a = (char) 65;