Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why this program is giving Compile error?

 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NAMASTE Friends !!

Please Explain why character literal char a='\u000A' is giving compile error..

Error-:" ADirtyOne.java:4:error: illegal line end in character literal char a='\u000A';"

Program is given below-:


Thankyou...
 
fred rosenberger
lowercase baba
Bartender
Posts: 12086
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
compiler errors are given because there is some kind of syntax error.

Of course, you could search this forum, and find this or this, which cover the same question.
 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic