Hi. I have these exercises to do, to write the output of some coding given. I can compile it in eclipse but doesn't mean i understand. can someone please explain this code to me. thank you.
int[] arrayA = new int[3]; //this part i know, create array size 3
int[] arrayB = arrayA;//from here i don't really understand. is this like create an array and put the first array
in it? why would you do that?
arrayB[0] = 19;//from here is to put value in each node
arrayB[1] = 2;
arrayB[2] = 35;
for(int element: arrayA)
System.out.println(element);