This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes special character \ 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
Reply Bookmark "special character \" Watch "special character \" New topic
Author

special character \

emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

hello everyone,
i know i can save a string containig special charachters with String string=("abcd\(special charachter)efg"),
but what if i need to write String string=("\")??
for example to tel someone ("FILENAMES CANNOT CONTAIN THE CHARACHTER \")
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 3793
    
    1

Simple, you use \ to escape \
emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

yeah, sorry for the stupid post, better stop messing with eclipse when in lack of sleep
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: special character \
 
Similar Threads
Please reply!
My Custom Validator is not working as i want
Setting cursor position in a text file Java
Special Character Issues in Java with Sybase
cannot understand this code