Page 1 of 1

Regarding Carriage return

Posted: Fri May 08, 2020 12:09 pm
by saregg

Code: Select all

System.out.println("Hello \rworld");
Output : world
where is the Hello gone, I use windows. And what is the actual difference between \r,\n,\r\n