Is there any way to get the keycode of a char? For example
getKeycode(\'C\');
Is there anything like that?
Thanks
char ch='c'; int code = ch; System.out.println(code);
OUTPUT:
99
just for escape char \ you have to use like char ch='\\';
\
ch='\\';