Check out example codes for "how to get ascii value of string letter in java". It will help you in understanding the concepts better.

Code Example 1

char a = 97+1;
char b = 'a'+2;
r = (char)(1+5)

Code Example 2

char character = name.charAt(0); // This gives the character 'a'
int ascii = (int) character; // ascii is now 97.

Learn ReactJs, React Native from akashmittal.com