I need to fill a whole load of fixed size arrays quickly. My thinking is this:
public void fillArrays(){
int[] filler_array = {0x01, 0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
System.arraycopy(filler_array, 0, spikeWaveB1, 0, 22);
filler_array = {0xF4, 0x26, 0x58, 0x8A, 0xBC, 0xEE, 0x20, 0x52, 0x84, 0xB6, 0xE8, 0xF4, 0xC2, 0x90, 0x5E, 0x2C, 0xFA, 0xC8, 0x96, 0x64, 0x32, 0x00};
System.arraycopy(filler_array, 0, spikeWaveB2, 0, 22);
filler_array = {... ...};
System.arraycopy(... ...);
}
Essentially I need a way of filling an already populated array with {x,y,z}. How do I re-fill it with a new list of values?
Any help greatly appreciated. Regards, George