Supriya
Let's start with the static variables i,j.
You have declared them at the top,and they get default values of 0 each. Within the static block,you have again declared i,j as
int i = 2;
int j = 1;
.These are two new variables and they are effectively local to the block,and the values of 2,1 that you assign to these completely different variables are lost once the execution completes the static block.Similar reasoning for the instance variables m,n
For what you are planning,remove the "int" declaration within the static block ,likewise for the instance variables
hope this clarifies your doubt
kris
Look at your code below:
[This message has been edited by anrup kris (edited October 27, 2000).]