sree android 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.
i=s*prioritynamearray.length+t taskoutput[s][t]=arr[i] or i=t*taskvaluesarray.length+s taskoutput[s][t]=arr[i] pskink -- 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