for (int i=0; i<array2d.length;i++) { for (int j=0; j<array2d[i].length;j++) { //set 0 the value to neighbour node array2d[i][j]=100; }}
System.out.println( array2d[0][1] ); System.out.println( array2d[0][2] ); } On Tue, Jan 1, 2013 at 4:05 PM, sree android <android.sreeni...@gmail.com>wrote: > After takeing two one dimensional arrays, i prepared one two dimensional > array.like this way > > String [ ][ ] taskoutput=new > String[prioritynamearray.length][taskvaluesarray.length]; > then Loop is rotating like this way, > > > for (int s = 0; s <prioritynamearray.length; s++) { > for (int t = 0; t <taskvaluesarray.length; t++) { > taskoutput[s][t]=here how can i add above two values into 2d arrays. > } > } > > > PLEASE SEND ME REPLAY. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en