Scanner input = new Scanner(System.in);
System.out.println("Enter matrix 1: ");
for(int row=0;row<3;row++){
for(int col=0;col<3;col++){
a[row][col]=input.nextDouble();
}
}
您好 - 鉴于上述将数据输入名为 2d 3*3 数组的解决方案a
,我目前无法接受用户输入。intellij ide 不接受我在input.nextDouble()
.
我想我错过了一些明显的东西,但是什么?:)