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
Probably cheating based on the requirements, but technically only 1 println statement and no loops.
public int recursivePrint(int number) { if (number >=5 ) return number; else System.out.println(recursivePrint(number++)); }