are known as escape sequences. I have been testing some, and I have seen that \ r and \ n generate new lines, although they have different definitions and as I have read, also different functions. Does anyone know the difference?
System.out.print("Diferencia entre usar \r");
System.out.print("O usar \n");
If it works, I leave this link, although I have not understood your explanation very well: link