my dog learned polymorphism*
The moose likes Beginning Java and the fly likes How to get a String contain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to get a String contain ""?" Watch "How to get a String contain ""?" New topic
Author

How to get a String contain ""?

guo mark
Ranch Hand

Joined: Oct 20, 2001
Posts: 43
How can i get a String like "select * from "tab""


meet once ,love every while
Jack J. Jackson
Greenhorn

Joined: Apr 20, 2002
Posts: 27
To include a double quote inside a String, use the escape sequence for the double quote; i.e. wherever you want a double quote to appear, use a backslash/quote pair like this: \"
Try it out with this:

Here are some other escape sequences you may need in the future:
Backslash \\
Backspace \b
Carriage return \r
Form feed \f
Horizontal tab \t
New line \n
Octal character \DDD
Single quote \'
Unicode character \uHHHH
[ April 20, 2002: Message edited by: Jack Frosch ]

Jack
guo mark
Ranch Hand

Joined: Oct 20, 2001
Posts: 43
solved it .thans alot
 
wood burning stoves
 
subject: How to get a String contain ""?
 
Similar Threads
How to get a String width(pixel or Metric)
encoding and decoding in java
Numeric Value of a String
SOAPBody as a String
JCCKIT