My System.out.println()
and System.err.println()
calls aren't being printed to the console in the order I make them.
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("out");
System.err.println("err");
}
}
This produces:
out
out
out
out
out
err
err
err
err
err
Instead of alternating out
and err
. Why is this?