I have String name = "admin";
then I do String charValue = name.substring(0,1); //charValue="a"

I want to convert the charValue to its ASCII value (97), how can I do this in java?

22 Answers
22

Leave a Reply

Your email address will not be published. Required fields are marked *