You can convert a character e.g. 'A' to its corresponding ASCII value 65 by just storing it into a numeric data type e.g. byte, int or long as shown below : int asciiOfA = (int) 'A'; Here casting is not necessary, simply assigning a character to integer is...