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();
}
}
Hi there – Given the above solution to entry of data into a 2d 3*3 array called a, I’m currently unable to take user input. The intellij ide won’t accept any input that I can see at the point of input.nextDouble().
I guess I’m missing something obvious but what ? 🙂
It’s JUNIT4 not taking console input – that’s why changing focus to the console produces no result.