How to take a string litterally.
I'm brand new to Java. I'm used to programming in C#, where, if a string literal has certain special characters, I can precede it with @ and the compiler takes the string literally without trying to interpret the special characters. I can also escape the characters with \, but the @ allows me to avoid that.
Is there something similar in Java? (obviously not @)
Re: How to take a string litterally.
>So the @ is only for a String containing \s?
No, that was just an easy example. @ makes the C# compiler take the string literally no matter what might be in it.
What other escapable characters might be in C# don't matter. It's evident from the rest of this message chain that Java doesn't do anything like that, which is fine. Java probably has many other helps not available in C#. Pot-ay-to Pot-ah-to. :)