为什么输入一值有误,到底怎么输入的啊,大神看这样输入有误吗
Scanner sc = new Scanner(System.in);
int k=sc.nextInt(),n=sc.nextInt();
int a[]=new int [n];
for(int i = 0; i < 8; i++){
a[i]=sc.nextInt();
}