File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes char\u0063='\u0063' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "char\u0063= Watch "char\u0063= New topic


weiliu lili
Ranch Hand

Joined: Apr 11, 2002
Posts: 46
I 've never seen this kind of declaration ,but it is right,could anyone give a bit explanation?
Jamal Hasanov
Ranch Hand

Joined: Jan 08, 2002
Posts: 411
\u0063 in Unicode is character 'c'. You can use Unicode inside your code. Therefore
char \u0063='\u0063';
char c = 'c';
Another sample,
ch\u0061r c = 'x';
char c = 'x';
That's all.
Jamal Hasanov
I agree. Here's the link:
subject: char\u0063='\u0063'
It's not a secret anymore!