Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

is it ok to use hashmap and arraylist instead of vector to make code optimized?  RSS feed

 
SunilK Chauhan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have gone through many programs and check it that they have used hasmap collection class to store data instead of vector even if data is small.
But is it ok to use hashmap for small data or large data to collect?
 
Stephan van Hulst
Saloon Keeper
Posts: 7808
142
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Sunil,

Please UseOneThreadPerQuestion. I'll lock this one, and we'll continue the discussion here: http://www.coderanch.com/t/665967/java/java/hashmap-arraylist-vector-code-optimized
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!