A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
String concatenation
Shawn Miller
Greenhorn
Joined: Jan 14, 2005
Posts: 1
posted
Jan 14, 2005 22:55:00
0
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
posted
Jan 15, 2005 00:03:00
0
Just use \ which is the escape character.
System.out.println( "\"my string\"" );
shandilya popuru
Ranch Hand
Joined: Dec 21, 2004
Posts: 95
posted
Jan 15, 2005 00:05:00
0
u can use escape characters use " \" " to print or assign a double quote to a string
sandy
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: String concatenation
Similar Threads
I'm lost, need help figuring what todo?
Wrapper Float Constructor
Double.parseDouble(String s) not handling decimal as expected
String conversion in to double
escape character nightmare - please help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter