Back
Below is the code I’ve to display a Unicode character in Java.
String symbol = "\u2202"; // symbol - "∂"
I want to code for how to construct the symbol when the Unicode number is known. Can someone tell me how to do this?
You need to cast int to char like below:
Character.toString():String s = Character.toString((char)c);
Character.toString():
String s = Character.toString((char)c);
Interested in Java? Check out this Java tutorial by Intellipaat.
31k questions
32.8k answers
501 comments
693 users