Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 String and Unicode
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
bushnerd




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
bushnerd




PostPosted: Thu Jun 08, 2006 8:45 am   Post subject: (No subject)

I have already isolated each character using

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




PostPosted: Thu Jun 08, 2006 9:16 am   Post subject: (No subject)

You may wish to look at the Character class.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: