Nested array in android -
I want to create / handle nested arrays in Android. My nested array will be similar to this.
[array name] = [1] = [1] = a [2] = b [3] = d [2] = [1] = a [2] = b [3 ] = D [3] = [1] = a [2] = b [3] = d I tried to do it with a hashmap and array list but I do not think Will it work .. Is there any idea of working with such nested array ?? Try the following code: string [] [] array = new string [intis] [intisij] ; // print array in rectangular form (int r = 0; r & lt; array height; r ++) {for (int c = 0; c & lt; array [r] .length; c ++) {Array [r] [c] = c + ""; // your genre}}
Comments
Post a Comment