The reason is, that first the Java compiler interprets the two \\ characters as an escaped Java String character . After the Java compiler is done, only one \ is left, as \\ means the character \ . The string thus looks like this: \.5 Mar 2019
The reason is, that first the Java compiler interprets the two \\ characters as an escaped Java String character . After the Java compiler is done, only one \ is left, as \\ means the character \ . The string thus looks like this: \.5 Mar 2019