• Post Reply Bookmark Topic Watch Topic
  • New Topic

Collections with replace function  RSS feed

 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Could any one help me out with the following scenario. If i had list that contatins 10 objects and modifed 5 objects from that. if we want to rupdate to the orginal list with 5 modifed obejcts. Can i use method from the collections.

Thanks,
Ram
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
modifed 5 objects from that

If you modified objects from the list, you don't need to replace anything at all.
 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

My List is in Session. I want to modify some objects from the list and want to update that particluar objects again back in session list

Thanks,
Ram
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This does not change my previous statement. Here is some fake code, with a list containing two users:

You don't need to replace anything in the list if you change objects that you have taken from the list. Sorry, but your problem is still not clear.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!