Since Java is all Unicode, that's what it will return, although you can use String.charAt(index):
cNumber now contains the Unicode character code for 'A'. A simple translation array would probably be a much better bet for doing this, though.Code:String sMyString = "A string"; char cNumber = sMyString.charAt(0);
[Edited by parksie on 08-02-2000 at 03:07 PM]




Reply With Quote