I want to represent an empty character in Java as \"\" in String...
\"\"
Like that char ch = an empty character;
char ch = an empty character;
Actually I want to rep
Use the \b operator (the backspace escape operator) in the second parameter
\b
String test= "Anna Banana"; System.out.println(test); //returns Anna Banana System.out.println(test.replaceAll(" ","\b")); //returns AnnaBanana removing all the spaces in the string