Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

array in a java class

i read like wrapping array in class protects array from being inadvertently altered. i have not understood what it means. Can you please advise with some sample code, link, resource.
Avatar of Dung Trinh
Dung Trinh

Do you mean setting it as a private variable?
ASKER CERTIFIED SOLUTION
Avatar of Dung Trinh
Dung Trinh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial