- 0
Java ArrayList's and Collections
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
JetBrains releases IntelliJ IDEA 2025.1.1, bringing multiple bug fixes and improvements
By David Uzondu,
- jetbrains
- intellij idea
- (and 6 more)
- 0 replies
- 0 views
-
- 14 replies
- 0 views
-
High Performance with Java ($33.99 Value) free eBook download
By News Staff,
- ebook offer
- sponsored
- (and 2 more)
- 0 replies
- 4 views
-
- 0 replies
- 8 views
-
Java and Algorithmic Thinking for the Complete Beginner ($9.99 Value) free download
By News Staff,
- ebook offer
- sponsored
- (and 1 more)
- 0 replies
- 4 views
-
Question
timsweb
Hi All,
I was wondering if I could get some advise on ArrayList's and Collections,
I currently have an ArrayList which becomes big in size, roughly 100,000 - 1,000,000 items, which are of a type I have created, Customers,
When searching the ArrayList, which I currently do with a for loop, I am searching for a match on 2 string items in the Customer object,
My question is how can I make this more efficient as from what I have seen, maps use numerical indexes, when the data I need a match on are Strings,
Also so you know, it is safe to assume the 2 string items in the Customer object are unique when put together,
Any ideas or advise on the best route to go would be great :)
Thanks, Tim
Link to comment
https://www.neowin.net/forum/topic/1097901-java-arraylists-and-collections/Share on other sites
6 answers to this question
Recommended Posts