Answers for "how to convert a int into char"

C
7

int to char java

int a = 65;  
char c = (char)a; 
System.out.print(c);// Printing: A
Posted by: Guest on January-26-2021
5

number to char java

char b = Integer.toString(a);//7-->"7"

char b = (char) b;//65-->"A"
Posted by: Guest on June-29-2020

Code answers related to "how to convert a int into char"

Code answers related to "C"

Browse Popular Code Answers by Language