To get the char code in Java you can use the following snippet.
Sample Java
System.out.println((int)'C'); // prints 67
To get the char code in Java you can use the following snippet.
System.out.println((int)'C'); // prints 67
To get the char code in Javascript you can use the following snippet.
"C".charCodeAt(0); // prints 67