posted 18 years ago
Hi ranchers,
the last line makes an Object array with three references pointing to the ^ in
perhaps change the output line from
// System.out.print(ia[i]);
to this three lines:
System.out.println(java.util.Arrays.toString(ia));
boolean sameRef = ( obj[i] == a [i] ) ;
System.out.println(sameRef);
Then it prints:
[1, 2]
true
[0, 1, 2]
true
[-1, 0, 2]
true
The elements printed originally are in bold.
OK?
Yours,
Bu.
all events occur in real time