Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Why cannot declare char c = '\u000a' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Why cannot declare char c = Watch "Why cannot declare char c = New topic
Author

Why cannot declare char c = '\u000a'

Yan Bai
Ranch Hand

Joined: Jul 21, 2002
Posts: 125
And all the escape sequences except \b, \t and
\" cannot be declared. Why?


SCJP 1.4
Shishio San
Ranch Hand

Joined: Aug 29, 2002
Posts: 223
Check the FAQ


Whatever doesn't kill us ...<br />Is probably circling back for another try.<br />SCJP 1.4
 
Don't get me started about those stupid light bulbs.
 
subject: Why cannot declare char c = '\u000a'