Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (9.5k points)

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?

1 Answer

0 votes
by (19.7k points)

You need to cast int to char like below: 


String s = Character.toString((char)c);

Interested in Java? Check out this Java tutorial by Intellipaat.  

Browse Categories