How can I print to console system sign for line separator like \n or \r; I know that System.getProperty("line.separator") returns the line separator and it breaks the line but I'd like to show what sign it is. Like \n or \r.
I want console result to be:
line separator is: \n
I have this code:
System.out.println("Line separator: " + System.getProperty("line.separator"));
It Shows
Line separator:
and then breaks the line. I would like a function to show me a sign (\n or \r).