Why the heck would you want to put extra stuff in the string? What possible value would that add?
Why not just something like
// For test purposes we give it the path.
// A...
Type: Posts; User: Zaphod_b
Why the heck would you want to put extra stuff in the string? What possible value would that add?
Why not just something like
// For test purposes we give it the path.
// A...
My response was an attempt to resolve a specific problem with the example that you posted. I mean, I tried to answer the question you asked. My crystal ball is cloudy today (marine layer down to...
The backslash is a very special character in Java strings (and in regular expressions, in general).
If you want a String to have a backslash, and you are initializing with a string literal...