A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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!
I agree. Here's the link:
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