Is there any way to get the keycode of a char? For example
getKeycode(\'C\');
Is there anything like that?
Thanks
A way is this:
char c = 'f';
System.out.println("code="+(int)c);
I mean, you should make a casting form char to int;
char
int