This is the code I'm using for a one dimension array: if (nDates >= dates.length) { Calendar tmp[] = new Calendar[dates.length + 10]; System.arraycopy(dates, 0, tmp, 0, dates.length); dates = tmp; // copies the array reference } How can I transpose this to a multidimensional array like : String fieldvaluearray [][] = new String [MAX][MAX] Thanks a lot for your help... Greetings.
Ernest Friedman-Hill
author and iconoclast
Marshal
I'm afraid I don't understand your intention; maybe this is just because your example arrays are of two different data types -- and furthermore, I'm not sure how the subject (regarding resizing) has to do with the rest of the post. Which is a long way of saying "can you explain your question in a bit more detail, please?"
Never mind... I just wanted to reize my array, but I did not understood correctly first that a multidimensional array is an array of array... So to resize a multidimensional array I just have to use the same code as I mentionned before but for only the first dimension(row) of my array(as in this case I know that second dimension(column)will contain always two column). Sorry fo rthe silly question...
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.