• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

special character \

 
emilio rossi
Ranch Hand
Posts: 47
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple, you use \ to escape \
 
emilio rossi
Ranch Hand
Posts: 47
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah, sorry for the stupid post, better stop messing with eclipse when in lack of sleep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic