I`m working on java with a simple println line..So my question is.. Is there a way to print using println..then Back again to print in the 1st line using also println .. for example I want the out put like this
1 5
2 4
3 3
4 2
5 1
the 1st column is the output of this line
System.out.println("1\n2\n3\n4\n5");
I want it to finish the 1st print line then print the 2nd column but when I use this line
System.out.println("5\n4\n3\n2\n1");
It want print it the way I want
Is there any way to do that