Computer Science Canada

String and Unicode

Author:  bushnerd [ Thu Jun 08, 2006 8:42 am ]
Post subject:  String and Unicode

I need to convert a string as unicode, and then add 2 to that value, and then convert it back.

From what I understand, char stores characters as unicode, but how do I add 2 to it?

Is there a command in java that allows this?

Thanks

Author:  bushnerd [ Thu Jun 08, 2006 8:45 am ]
Post subject: 

I have already isolated each character using

code:
char[]code = inputStr.toCharArray();

Author:  wtd [ Thu Jun 08, 2006 9:16 am ]
Post subject: 

You may wish to look at the Character class.


: