I am using the charAt(integer) method which returns the ASCII code as integer. How to convert that ASCII code to it's original character in "Apex"?
1 Answer
String myChar = String.fromCharArray( new List<integer> { 65 } );
myChar
is 'A' now.
-
Hey, how can I get exactly reverse of this Like -- 65 => 'A' Commented Jun 4, 2020 at 11:34
-
1@OmkarDeokar see salesforce.stackexchange.com/questions/85495/string-to-ascii Commented Jun 5, 2020 at 14:06