java tambahkan backslash ke string

use "\\" instead of "\"
String catDogWithBackslashInBetweeen = "cat" + "\\" + "dog";
Sparkling Snake