android - individually assign buttons variables to a 2d array -
i want assign button values 2-d array. how it?
`int[][] m =new int[5][5];
m[0][0]= button b1; m[0][1]= button b2; m[0][2]= button b3; m[0][3]= button b4; m[0][4]= button b5;
assume, button value mean button text , int datatypes
how can this.
m[0][0] = integer.parseint(button1.gettext().tostring()); m[0][1] = integer.parseint(button2.gettext().tostring());
Comments
Post a Comment