This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes '\u000d' and '\u000a' are not valid ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark " Watch " New topic
Author

'\u000d' and '\u000a' are not valid ?

Prashant Neginahal
Ranch Hand

Joined: Dec 04, 2002
Posts: 76
Hi Everybody,
why '\u000d' and '\u000a' are not valid ?
If char c='\n' is possible why can't
char c='\u000a', when both have same int value 10...?

------------
Prashant


--------------<br />Prashant<br />SCJP-91%
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

check out the FAQ. It answers your question.
 
wood burning stoves
 
subject: '\u000d' and '\u000a' are not valid ?
 
Similar Threads
Escape sequences and compiler errors
2 questions from Mock Exams.
char literals
char value assignment
StringBuffer