sriya
Sep 28th, 2007, 02:35 AM
hi all,
i'm jst struggling of making a dynamic 3-D array.
here is the code.
is it possible to bouild up arrays of bojects with different sizes of width and height? (as in the 3rd line of the code shown)
MyObject[][][] user_stories = new MyObject[no_f_projects][][];
for(i=0; i < no_f_projects; i++){
user_stories = new UserStoryData[no_f_projects][no_f_iterations[i]][];
for(j=0; j<no_f_iterations[i]; j++){
user_stories[i][j] = planner.getUserStories(Id[i][j]);
}
}
here in the 5th line.. an array of objects is passed to the reference user_stories.........
pls help me
thanking in advance!!
i'm jst struggling of making a dynamic 3-D array.
here is the code.
is it possible to bouild up arrays of bojects with different sizes of width and height? (as in the 3rd line of the code shown)
MyObject[][][] user_stories = new MyObject[no_f_projects][][];
for(i=0; i < no_f_projects; i++){
user_stories = new UserStoryData[no_f_projects][no_f_iterations[i]][];
for(j=0; j<no_f_iterations[i]; j++){
user_stories[i][j] = planner.getUserStories(Id[i][j]);
}
}
here in the 5th line.. an array of objects is passed to the reference user_stories.........
pls help me
thanking in advance!!