Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Treat chars as plain text?

 
J Gib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Say i have a line of code:

How can I tell the compiler to treat the "()';" chars as plain text instead of recognizing them as part of the code?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by J Gib:
How can I tell the compiler to treat the "()';" chars as plain text instead of recognizing them as part of the code?


Apart from the " all the characters will be treated as plain text. You need to escape the " with a \


should compile
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!