Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about example in Hanumant's book

 
joe black
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the example on p. 167, what would be the best way to make a local copy of the listofusers attribute?
[ July 01, 2004: Message edited by: Joe Black ]
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um ... page 167 of what book?
 
joe black
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hanumant's book -- SCWCD Exam Study Kit

Didn't know he had other books...
[ July 01, 2004: Message edited by: Joe Black ]
 
Vijay Albuquerque
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,
You could try this to create a local list from the data in the context list:


Since we have created a new local object, the local list is now thread safe!


VJ
[ July 02, 2004: Message edited by: Vijay Albuquerque ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!