Programming Books C Java PHP Python Learn more Browse Programming Books
Java Collections and over one million other books are available for Amazon Kindle. Learn more
  • List Price: $49.95
  • Save: $18.09 (36%)
FREE Shipping on orders over $35.
In Stock.
Ships from and sold by
Gift-wrap available.
Add to Cart
FREE Shipping on orders over $35.
Condition: Used: Good
Comment: This book has already been loved by someone else. It MIGHT have some wear and tear on the edges, have some markings in it, or be an ex-library book. Over-all it is still a good book at a great price! (if it is supposed to contain a CD or access code, that may be missing)
Add to Cart
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

Java Collections Paperback – April 26, 2001

See all 3 formats and editions Hide other formats and editions
Amazon Price New from Used from
"Please retry"
"Please retry"
$10.30 $6.33


Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Paperback: 420 pages
  • Publisher: Apress; 1 edition (April 26, 2001)
  • Language: English
  • ISBN-10: 1893115925
  • ISBN-13: 978-1893115927
  • Product Dimensions: 9.3 x 7.4 x 1.1 inches
  • Shipping Weight: 2.1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Best Sellers Rank: #2,120,963 in Books (See Top 100 in Books)

Editorial Reviews Review

For Java developers of all levels, Java Collections provides a truly indispensable guide to using the built-in collection classes, in an extremely clear and well-organized text. This title sets a high standard for a programming reference, one that will be appreciated by a wide range of readers.

Although the Java collection classes are not nearly as complicated as the Standard Template Library classes in C++, it can still be a bit daunting to figure out what's included and what's not. Beginning with the simple "historical" Java collection classes (for arrays, Vector, Hashtable, and Stack), the author shows you just how to do it, with clear reference to useful APIs for each collection type, plus short code snippets showing these APIs in action.

The standout feature of this title is its clear presentation of the Java Collection Framework, the built-in set of classes in today's Java 2 standard. Other texts can get muddled with their coverage of these classes, but this one never loses the reader. Starting with the APIs that are available for every collection class, the book builds to show what's available in linked lists and map classes. The author does a great job at avoiding the confusion between different "implementations" of these basic container shapes. (Of course, he does explain the difference between HashMap, WeakHashMap, and TreeMap, for example, but not before showing which APIs are common to all map classes.)

Beyond choosing and using the right collection class for the job, this text also excels at showing off the built-in algorithms that are available for manipulating collections (like for sorting and searching). Advanced sections give advice for defining your own custom collection classes should you need to go beyond the built-in classes. Final chapters look at third-party collection classes (like the JGL and util.concurrent package) for doing even more.

It's the clear focus on understanding and using today's Java collection classes effectively that helps make this title a winner. In all, Java Collections is a handy and truly worthwhile guide to using Java collections, something that all Java developers need to master to write effective software. --Richard Dragan

Topics covered:

  • Guide to programming with Java collection classes
  • The "historical" Java collection classes
  • Arrays (declaring and creating arrays, copying and cloning, immutability, assignments and reflection, character arrays)
  • The Vector and Stack classes (basic operations and programming tips)
  • The Enumeration interface (custom enumeration classes)
  • The Dictionary, Hashtable, and BitSet classes (APIs and programming hints)
  • The Java Collections Framework
  • The Collection interface (built-in APIs for all collections)
  • Using sets (including HashSet and TreeSet)
  • List classes (including bidirectional iteration)
  • Maps (including map entries, the HashMap, WeakHashMap, and TreeMap classes)
  • Sorting with collections (designing with Comparable, SortedSet, and SortedMap)
  • Advanced features (prebuilt collections, searching and generic list operations)
  • Array algorithm support (filling, sorting, and searching arrays)
  • Hints for building custom collection classes
  • Forward and backward compatibility with Java collection classes
  • Choosing the right collection
  • Alternative collection class libraries (JGL, util.concurrent, and Colt, installation and programming hints)
  • Quick reference to collection APIs


From the reviews:

¿¿a clearly documented, insightful, comprehensive, and entertaining exploration of the Swing API, complete with the kind of treatment that offers something new to even the most sophisticated Swing developer (yet) is easily accessible to even novice Swing developers¿I recommend it highly to anyone who has, or plans to do, any Java user interface development.¿ ¿DEVYX.COM

"The book is about Java’s support for dealing with data structures via groups of classes called collections. … It can be used as a source of examples of good programming practices. … The book is a good introduction into programming with collections." (Jaroslav Král, Zentralblatt MATH, Vol. 1001, 2003)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.3 out of 5 stars
Share your thoughts with other customers

Most Helpful Customer Reviews

10 of 11 people found the following review helpful By Amazon Customer on June 27, 2001
Format: Paperback
Everything you ever wanted to know about Java Collections...including some things that you probably didn't want to know!!!
This is an excellent book and coverage of this important topic is long overdue.
I really like the detailed method by method explainations and I also like the attention to the subtle detail provided to call out semantic differences between often very similar classes/interfaces. The best examples in the book (in my opinion), are the PriorityQueue and the Multimap since they are real-world collections that I would be able to use immediately. I thought the diagrams in the book were extremely well done. The use of UML was a great choice...I was able to read and understand the relationships between classes and interfaces without having to learn "yet-another-object-modeling-language".
I read the book front-to-back, but I'm not sure that you will need to...The sections on each collection interface and implementation form a great reference...I will likely re-read individual chapters the next time I need to use one of the collection classes.
Don't skip over Part I (Historical Collection Classes), I've been working with Java for years and I still learned something about arrays!
All and all, it is money well spent if you want detailed information on the Collections support in the Java language.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
6 of 6 people found the following review helpful By Victor J. Grazi on December 2, 2001
Format: Paperback
I can't say this was a bad book - it is well written and covers the subject pretty completely.

The problem is that it is too large a book for what it covers. It could have been 25% the size and probably more useful if it had charts instead of pages.

Also, I find it a little annoying that the api tables don't show the parameters or return types, you have to read the method descriptions to find that.

Also, I would have liked to see an appendix with UML diagrams for the Collections framework. The diagrams are scattered throughtout the book, but they are not summarized in one appendix where you can review all of them.

Also, I don't think the author went deeply enough into sample uses for the various collections - I found myself asking - when would you ever use a HashSet?

Again, the book is good and fast reading, but I think you can get all of the information from this book and more if you put your money into something like Core Java Advanced features - that would be a lot more information for the money.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By A Customer on November 26, 2001
Format: Paperback
Java Collections is broken into three basic sections. The first section describes the Java historical collections classes, and offers tips on optomizing and some more advanced techniques. The second section describes the Java Collections Framework, which was introduced with the release of Java 2. And the third section describes some of the other collection libraries available for Java programmers.
The book is well organized and is an easy to use reference. The contents and appendices allow the reader to only read/use the chapters that are of interest. The example code given in the book could be easily adapted for many programming uses. The book also offers tips on choosing an appropriate data collection type. While the code is not included on a CD with the book, it is available on line.
The book is not intended for a beginning programmer. While it does assume that the target audience has some experience with Java programming and a basic understanding of data structures, it also does a fairly comprehensive job of explaining the data collections and methods of the Framework. The text and coding examples are supplemented with easy to follow diagrams, and useful tips and warnings.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 3 people found the following review helpful By A Customer on April 23, 2002
Format: Paperback
I am a tech architect in web content management consultancy business. Many data structures and data manipulation algorithms need to be employed in a professional manner in web content management and deployment. I have read many web related Java books released so far and closely looked at most of them. But there wasn't any other book on Java Collections as John's book.
This book explains Java collections and their uses in-depth. The concepts are clearly explained and examples are easy to follow. The book is definitely good for beginners to experienced architects. Besides showing off the built-in algorithms available for manipulating collections, the books also gives tips on defining custom collection classes. The discussion and tips on the interactions between collections and threading are very useful for developing codes with thread-safe collections.
This is a great book! I would definitely suggest you get this book if you need to deal with data structure and manipulation, and JSP page development.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Format: Paperback Verified Purchase
It's nice to see a whole book devoted to a fundamental but often underestimated subject in "commercial programming" like data structures and sorting and searching algorithms. (Ever heard: "well, let's just use and ArrayList, what else could we do?" or "will'll just dump it in a Hastable"). This book gives a very readable and clear overview of the main functionality of the Java Collections APIs and can make a decent introduction for someone just starting out with the language, but is definitely lacking depth and solid and interesting code examples and applications. So, I recommend the book only if you are a newbie to Java and data structures in general. Unfortunately, most of the books on Data Structures in the market will put you off with their pompuous academic style and horrible price, since they are created as textbooks to rip off CS students. A sound, detailed, no bs, up to date, code intensive technical text on the Java collections API is still sorely missing.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Customer Images

Most Recent Customer Reviews


What Other Items Do Customers Buy After Viewing This Item?