import java.util.Scanner;
public class Insertion {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int arr[] = new int[5];
System.out.println("enter array elements");
for(int i=0;i<arr.length+1;i++){
arr[i] = sc.nextInt();
}
for(int i:arr){
System.out.println(i);
}
}
}
recently installed sublime text 3 and ran above code(taking input from user --> store in array --> display it).
But in console output never triggers input operation happening endlessly.