+ 9
Is there any difference between %n and \n ?
As I remember official documentation suggest us to use %n instead of \n. Can anyone explain why?
2 odpowiedzi
+ 5
Now it's clear. The %n is platform-independent newline character. Original source: https://docs.oracle.com/javase/tutorial/java/data/numberformat.html