turn integer into a char array in java code example
Example 1: convert string to char array in java
String str = "example";
char[] ch = str.toCharArray();
Example 2: number to char java
char b = Integer.toString(a);//7-->"7"
char b = (char) b;//65-->"A"
Example 3: int to char java
int c=123;
String s = Integer.toString(c);
for(char ch: s.toCharArray())
System.out.print(ch+",");