Hi, im having a little trouble converting int to char in java :/
What i know works:
Is there any better way though than creating a string?
I thought maybe:
might work, but it just prints a smiley face
Thanks!
What i know works:
Code:
String str = Integer.toString(i);
char c = str.charAt(0);
I thought maybe:
Code:
int i = 0;
char c = (char)i;
Thanks!