Results 1 to 3 of 3
- 12-17-2009, 02:09 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 1
- Rep Power
- 0
Which would be better List iterator or accessing through index?
Hi All,
i have doubt regarding the usage of iterator.We stores a list of values in a arraylist.Inorder to access it right now we are using list iterator and taking the values and comparing the values with the existing key. If there is a match with the key,then we are using that particular value.
The point is the arraylist contains dynamic data and the data might be in several thousands,but some how I could able to get the index of the value which exactly matches with key.
I compared both approach and I couldn't find any problem with it.
Since it is web application when the load increases,the performance is bit slow.
So I need a resolution for this..
Please help...
- 12-17-2009, 03:05 PM #2
Member
- Join Date
- Dec 2009
- Location
- Rio de Janeiro
- Posts
- 38
- Rep Power
- 0
Do you really need to use iterator?
Last edited by renamed; 12-17-2009 at 03:08 PM.
Please don't laugh at my English... I'm trying my best! :)
- 12-17-2009, 03:06 PM #3
Member
- Join Date
- Dec 2009
- Location
- Rio de Janeiro
- Posts
- 38
- Rep Power
- 0
Similar Threads
-
Accessing an arrayList of multiple items per index.
By scrap in forum New To JavaReplies: 12Last Post: 11-05-2009, 07:12 AM -
[SOLVED] Writing an Iterator method in a custom list
By xcallmejudasx in forum New To JavaReplies: 2Last Post: 02-12-2009, 05:22 AM -
Accessing list out another class
By Preethi in forum New To JavaReplies: 23Last Post: 10-26-2008, 02:54 PM -
Creating an Iterator for Linked List
By spanky in forum New To JavaReplies: 3Last Post: 10-05-2008, 07:16 PM -
Accessing index.dat files
By vissu007 in forum NetworkingReplies: 1Last Post: 07-01-2007, 04:47 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks