• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want to print "test" with quotations(").

 
raja bhai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to print "test" with quotations("). How can I do that?
Thanks in advance
 
Steven YaegerII
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure below works, though it's been awhile since I've used any special charachers:
System.out.println(" \"test\" ");
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic