how to print string containing \123
843789May 29 2009 — edited May 29 2009Hi
What i am trying to do is
String string = "sdfasfsaf \123 sdfsdf \23 sdfsdf\4";
System.out.println(string);
But problem is that it escapes numbers after \ and prints the charater instead.
How can i print such strings. How can i add one more slash before so that it will not escape it and print the string as it is.
So that the output will be
sdfasfsaf \123 sdfsdf \23 sdfsdf\4
thanks & regards