I don't know what I'm doing wrong. In IntelliJ I console it works the way it should. I first enter a number n and if this number is greater than zero I enter n more numbers. If n is even (n % 2 == 0) I display them in reverse order on a new line and if n is odd I display them on a new line w/o changing the order.