This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
By escaping it with a backslash, so the string would look like "text \"text\" text".
Csaba Kassitzky
Ranch Hand

Joined: Nov 29, 2005
Posts: 38
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: " in String?
 
It's not a secret anymore!