Thank you for the opportunity to help you with your question!
you should write this program :
to fulll the matrix :
Scanner input = new Scanner(System.in);
int  matrix = new int ;
System.out.println("Enter the vlaue : ");
matrix[i][j] = input.nextLine();}
and you should write this to output the value :
and you wiill get it as you want ok
just ask if you need something
Please let me know if you need any clarification. I'm always happy to answer your questions.
Content will be erased after question is completed.