0

i am trying to accept a 3 by 4 integer matrix from the user and an unable to do so.here is my code.

```
void accept()throws IOException
{
int i,j;
InputStreamReader instream = new InputStreamReader(System.in);
BufferedReader stdin = new BufferedReader(instream);
System.out.println("\nEnter the coefficients and the constants for the 3 equations ");
for(i=0;i<3;i++)
{
for(j=0;j<4;j++)
{
System.out.println("M["+i+"]["+j+"]=");
mat1[i][j]=Integer.parseInt(stdin.readLine());
}
}
}
```

Thanks in advance!please help