aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: char\u0063='\u0063'
Similar Threads
This thread is for topics not covered by K&B 1.4 book
Unreadable code ?!
char literals
FileOutputStream and identifier \u0063
\u0063 is a indetifier