• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sets and Lists and Maps OH MY!  RSS feed

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So there are different types of collections and different ways to use them. I know some of these are sortable, some can or can't have duplicates, and some can be ordered and some can't. There are other properties that also set these apart. Does anyone know of a table somewhere that I can reference to get a good pictures of these properties and their capabilities.
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Googling for "Java collections tutorial" yields two links with potential. The latter in particular looks good, though it is a bit dated. For collections, I don't think this should matter too much.

  • Collections trail at java.sun.com tutorials
  • Online training at java.sun.com on collections.


  • -Tim
    [ May 25, 2004: Message edited by: Tim West ]
     
    Stan James
    (instanceof Sidekick)
    Ranch Hand
    Posts: 8791
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Here's my crib sheet ... I don't try to keep this stuff in my head, there's too much important stuff like Simpsons Trivia in there. http://www.surfscranton.com/architecture/JavaCollections.htm
     
    Dale DeMott
    Ranch Hand
    Posts: 515
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for the info! Looks good. If anyone else has other places that they go to or references that they use, please feel free to post.
     
    Chengwei Lee
    Ranch Hand
    Posts: 884
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    How about getting the SCJP 1.4 book by Bert & Kathy, it helps a lot!
     
    Tony Morris
    Ranch Hand
    Posts: 1608
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    A reference table might be handy, but might I suggest another approach to gain your intended understanding. There are many well written texts available that are focused solely on "Abstract Data Types" (ADT) - reading and understanding one of these books will certainly be beneficial to understanding the different Java Collections types.

    Personally, I have a visual image stored in my head that represents each ADT that I have studied (do not believe that the Java Collections defines the finite set - there are many more!) and I refer to those images when the need arises. I "drew" these images by reading many books, practising over the years, etc.

    The key concept here is the "Abstract Data Type" - Java Collections are a mere subset of and a less formal definition of an ADT.
     
    Chengwei Lee
    Ranch Hand
    Posts: 884
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I agree with what Tony suggests. In fact, this will help you in the long-run. But, if I'm in a tight schedule & need to get my work done ASAP, I think a handy reference book will serve my immediate purpose. After which, then I would use Tony's approach to build up on my foundation for that.

    IMHO, its the time & needs that determines the solution(s).
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!