If the output is a “System.out.println” statement then the outcome will typically be vertical. If the output is a “System.out.print” statement then the outcome will typically be horizontal. There are execeptions however, like if you use the escape sequence, “\n” in the “System.out.print” statement which would make it vertical.
Hope this helped.