hi, I am having reqmt that I am having method which is returning One ArrayList. But I don't want anybody should be able to change/modify that ArrayList. What to be do for that ? Thanx in adv.
posted 13 years ago
You could try :
The latter returns a list that is backed by the original list, so if the original list changes the clients version will reflect that. The former returns a copy of the list and changes will not propogate. did that help ? D. [ October 17, 2003: Message edited by: Don Kiddick ]