Hello, guys! I've been trying to fix a bug for the whole day and I finally found it. I have a two-dimensional array named "presets[][]" and another array named "dummy[]". I needed to set "dummy" to "presets[]". I tried to do it like this:
- dummy=presets[0];
But instead of setting "
dummy" to "presets[0]", it set
"presets[0]" to "
dummy".
It worked when I coded it like this:
- for(int i=0; i<presets[0].length; i++){
- dummy[i]=presets[0][i];
- }
The question is: What's the difference? Why didn't the first method work?
1