Solved

Character to String coversion

Posted on 2008-06-20
4
179 Views
Last Modified: 2010-03-30
Trying to create a string object from a char of value 0x1E, but each time I try it, it changes the value from  0x1E to 0x2E.

Need assistance with this regards.
0
Comment
Question by:slickdeals
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 21833029
Please post your code. Try
char c = '\u001e';

String s = "" + c;

Open in new window

0
 
LVL 13

Expert Comment

by:MicheleMarcon
ID: 21843938
Which compiler/IDE are you using?

And of course: are you sure to have saved the file before compiling?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now