how to calculate ascii value of string in java code example
Example: how to get ascii value of string letter in java
char character = name.charAt(0); // This gives the character 'a'
int ascii = (int) character; // ascii is now 97.
char character = name.charAt(0); // This gives the character 'a'
int ascii = (int) character; // ascii is now 97.