A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Another question regarding arrays
Joined: Mar 26, 2004
Jun 28, 2004 21:27:00
int newArray = arrayReferencePassedAsMethodParameter.clone();
equals to copying the returned array into a new array? I mean, do I make sure that I dont refer to the reference that could be modified somewhere else?
Thanks in advance,
Joined: Mar 08, 2001
Jun 28, 2004 23:30:00
Yep. It is safe as long as it is an array of primitive datatypes.
<B>Hari Gangadharan</B><BR>Unix is user friendly..<BR>but it chooses to whom it is friendly with!
subject: Another question regarding arrays
Widening Reference Conversation
Sorting an Array
Multi Dimension Array Storing
how many objects will be created.
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014