- 0
Java ArrayList's and Collections
-
Similar Content
-
We are moving faster than ever imagined possible raising serious Universal questions
By hellowalkman,
- aktuell uni bielefeld
- solar system
- (and 8 more)
- 21 replies
- 0 views
-
Google's new method makes LLMs faster and more powerful, and cheaper too
By zikalify,
- google research
- (and 9 more)
- 13 replies
- 0 views
-
.NET and JDBC drivers get native vector data support, enabling up to 50x faster reads
By Usama Jawad96,
- 0 replies
- 0 views
-
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
-
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