Java equivalent of C# @
Posted
by Simon Rigby
on Stack Overflow
See other posts from Stack Overflow
or by Simon Rigby
Published on 2010-04-20T09:09:55Z
Indexed on
2010/04/20
9:13 UTC
Read the original article
Hit count: 326
Hi all,
Quick question. Is there an equivalent of @ as applied to strings in Java:
For example I can do @"c:\afolder\afile" in C# and have it ignore the escape characters when processing instead of having to do "c:\afolder\aFile". Is there a Java equivalent?
hmmm: stackoverflow is escaping on me .. lol. The second example should read:
c:(double-backslash)afolder(double-backslash)aFile
© Stack Overflow or respective owner