for (int x = 0; x >= N; x--) { array[i]=scanner.nextInt(); System.out.println(array[i]); Не верно в этом моменте?