aspose file tools
The moose likes Beginning Java and the fly likes Collections with replace function Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Collections with replace function" Watch "Collections with replace function" New topic
Author

Collections with replace function

Ram Adsumalli
Ranch Hand

Joined: Oct 16, 2006
Posts: 64
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

Joined: Nov 24, 2005
Posts: 14669
    
  11

modifed 5 objects from that

If you modified objects from the list, you don't need to replace anything at all.


[My Blog]
All roads lead to JavaRanch
Ram Adsumalli
Ranch Hand

Joined: Oct 16, 2006
Posts: 64
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

Joined: Nov 24, 2005
Posts: 14669
    
  11

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Collections with replace function
 
Similar Threads
Prototype and script.aculo.us ToC
How to handle Large Lists
Creating a LinkedList of class objects
Sorting question
Iterator v/s Enumeration v/s for loop