Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Escape sequence for multiline comments  RSS feed

 
Ven Rodri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to include the following

/*+ */

in a String , but since /* */ indicates a multiline comment in Java, I get a compilation error.

What is the escape sequence to be used in such a case?

Thanks,
Venita.
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no escape sequence. This code compiles fine. Perhaps you made another mistake? What is the error you are getting? Or were you just assuming it would cause a problem?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!