overwriting entire array in java ?

Hi,

is it possible to overwrite a whole array java ? It seems I can only replace each cell individually, ie: myaray[3][4] = 32, or replace it with another array ie: myarray = newarray....

In javascript I was able to just say myarray[3] = [newdata,newdata,newdata] ... but I don't seem to be able to do that in java ?

making multiple arrays is giving me memory problems...

tthanks...

[414 byte] By [kob2040a] at [2007-11-27 8:56:28]
# 1

like this?

String[] strings = new String[]{"one", "two"};

strings = new String[]{"new","old"};

mkoryaka at 2007-7-12 21:19:32 > top of Java-index,Java Essentials,New To Java...
# 2
import java.util.Arrays;int[] array = {0, 3, 234, 645, 867};Arrays.fill(array, 345);
myncknma at 2007-7-12 21:19:32 > top of Java-index,Java Essentials,New To Java...
# 3
myarray[3] = new int[] {1,2,3,4};
floundera at 2007-7-12 21:19:32 > top of Java-index,Java Essentials,New To Java...
# 4
and to overwrite a mutlidimensional array I can just do:multidimensional = new int[][] { {1,2,3,4},{1,2,3,4} };thanks !
kob2040a at 2007-7-12 21:19:32 > top of Java-index,Java Essentials,New To Java...
# 5
Do you think you would get a quicker response from posting on the forum or trying to compile that code and see if it executed?
floundera at 2007-7-12 21:19:32 > top of Java-index,Java Essentials,New To Java...