aspose file tools*
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "" in String?" Watch "" in String?" New topic
Author

" in String?

Csaba Kassitzky
Ranch Hand

Joined: Nov 29, 2005
Posts: 38
Hi everyone!

How can i include a " in a string?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41529
    
  53
By escaping it with a backslash, so the string would look like "text \"text\" text".


Ping & DNS - my free Android networking tools app
Csaba Kassitzky
Ranch Hand

Joined: Nov 29, 2005
Posts: 38
Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: " in String?