This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes String concatenation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String concatenation" Watch "String concatenation" New topic
Author

String concatenation

Shawn Miller
Greenhorn

Joined: Jan 14, 2005
Posts: 1
How do I concatenate a double quote (") into a string, if I actually want the double quote to appear on the output.
Andris Jekabsons
Ranch Hand

Joined: Jan 20, 2004
Posts: 82
Just use \ which is the escape character.
System.out.println( "\"my string\"" );
shandilya popuru
Ranch Hand

Joined: Dec 21, 2004
Posts: 95
u can use escape characters use " \" " to print or assign a double quote to a string


sandy
 
wood burning stoves
 
subject: String concatenation