+ 1
what list should i use the most?
if i just need to make a list of things... what list should i use? HashSet? ArrayList? LinkedList? or what? and is there a List that can store any variable(String, integer, char) in one big list? (like a set in python...)
3 odpowiedzi
+ 2
It depends on what you are planing to do the most with your list.
If you want faster access then array is preferred , if you are performing search operation a lot of time then hashset is recommended. If you want it to be flexible in size then linked list is recommended.
+ 1
Arsenic, Thanks. what about the second quastion? (and is there a List that can store any variable(String, integer, char) in one big list? (like a set in python...))