- Should I define a hashmap with something like “A” , new Character(“A”)
- should I use something like a sorted list ? or cast it into an int?
- simple list? (that doesnt seem too efficient )
I need a fast retrieving – when I ask if the Char exists.
adding time is almost none important.
As we’re talking about a
Collection: It depends on the collection type. AHashSetoffers the best performance forcontainsoperations, which is O(1).