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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "char\u0063= Watch "char\u0063= New topic
Author

char\u0063='\u0063'

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
Weiliu,
\u0063 in Unicode is character 'c'. You can use Unicode inside your code. Therefore
char \u0063='\u0063';
is
char c = 'c';
Another sample,
ch\u0061r c = 'x';
is
char c = 'x';
That's all.
Jamal Hasanov
www.j-think.com
 
 
subject: char\u0063='\u0063'