abuyusuf35
asked on
Defining this string in Java
How would I define this string in Java
"Domain\Username" since Java won't accept the backslash ?
Thanks
"Domain\Username" since Java won't accept the backslash ?
Thanks
you use two backlahses instead of one "Doman\\username"
In this way you can escape backslash and it will put only one backslsh into actual text
String s = "Domain\\username";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.