I would like the following to be printed
test1
test2
test3
test4
But I can\'t seem to get the text to the next line.
Plea
Try out.newLine();
out.newLine();
So, it would be
for (int i = 0; i < 4; i++) { out.write("test " + "\n"); out.newLine(); }
Source (Java API)