Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How does java convert letters into integers? What should I do if I want to convert the string "a" into an integer?
How does java convert letters into integers? What should I do if I want to convert the string "a" into an integer?
int a = ' a

Then plastic a represents the ASCII code of the character' a'.

You can use the toCharArray () method of String to convert strings into characters.

I hope it helps you!