Editor are not take input

how editor take input

Scanner scn = new Scanner(System.in);

int N = scn.nextInt();
int[] arr = new int[N];

for(int i = 0; i < arr.length; i++){
    arr[i] = scn.nextInt();
}

hope this will help u
pls rate my work