william007
asked on
Get ascii code of a string
String str="A";
How do I get the ascii code of str?
How do I get the ascii code of str?
Charcter.codePointAt(str, 0);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
typo:
Character.codePoint(str, 0); // where 0 is the index in the str string
Character.codePoint(str, 0); // where 0 is the index in the str string
What do you mean by ASCII code of the string? You can get ASCII code of individual characters as shown above.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks=)