Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jamil Akram   on Oct 24 In Java Category.

  
Question Answered By: Helga Miller   on Oct 24

Well you should definitely use the new collections  (i.e. HashMap,
ArrayList, etc.) in favor of the old ones (i.e. Hashtable, Vector). The
type of collection  you use depends on whether you want a list of things
(then you'd use ArrayList, LinkedList or something similar) or a map
which maps keys to values (in which case you'd probably use HashMap).
HashMap stores keys in any order but there are also variations which
provide sorting by natural order. Additionally there are utility
methods in Collections which help with this as well.

Try java.sun.com/docs/books/tutorial/collections/ for more
information.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Can some one tell me the basics of collections Or get search suggestion and latest updates.


Tagged: