Solved

Character to String coversion

Posted on 2008-06-20
4
188 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 88
egit plugin on eclipse 8 82
Opening PDF on button click and fill new document 2 47
pagenation logic how it is working in my code 1 58
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

820 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