this is one of the interview question. I am supposed to print multiple lines of output on command line, without using the newline(\\n) character in java. I trie
\\n
Ok, now I think I understand your question. What about this?
println(String.format("%d%n%d%n%d%n%d%n%d%n", 1, 2, 3, 4, 5));