Data Structures in Java: Part 8, The Comparable Interface, Part 2 Virginia

Baldwin shows you why the elements stored in a TreeSet collection need to be references to objects instantiated from a class that implements the Comparable interface, and briefly discusses an alternative approach using the Comparator interface.

Local Companies

Digital Image Technology Corp
(757) 623-3709
500 E Plume St
Norfolk, VA
Paramount Technology Group Inc
757-405-0110
3909 Colony Pointe DR
Chesapeake, VA
Software Development & Services Corporation
703-359-1380
2200 Wilson Blvd
Arlington, VA
Patriot Computers
(757) 587-6400
7862 Tidewater Dr
Norfolk, VA
FronTech
703-9080651
4900 Leeseburg Pike
Alexandria, VA
IBM Corp
(757) 446-6200
999 Waterside DR
Norfolk, VA
Electronics Boutique
757-465-5977
4200 Portsmouth Blvd
Chesapeake, VA
Active Computer & Electronics
757-558-8878
2981 S Military Hwy
Chesapeake, VA
Geeks On Call America
(757) 722-3200
814 Kempsville Rd
Norfolk, VA
Direct2U Computer Repair
757-803-8126
4213 Schooner Trail
Chesapeake, VA

provided by: 
Originally published at Internet.com


Java Programming, Lecture Notes #1364 * Preface * Preview * Discussion and Sample Programs * Summary * What's Next ----------------------------------

Preface

This is the eighth lesson in a miniseries on Java data structures and the Java Collections Framework. The first lesson in the miniseries was entitled Data Structures in Java: Part 1, Getting Started. The previous lesson was entitled Data Structures in Java: Part 7, The Comparable Interface, Part 1.

The purpose of this miniseries is to help you learn the essential features of Object-Oriented data structures in Java using the Collections Framework.

This is also the second and final lesson in a sub-series on the Comparable interface. The purpose of the lessons in the sub-series is to teach you about the interactions between the Comparable interface and the Collections Framework, particularly with respect to the Set, SortedSet, and SortedMap interfaces of the Collections Framework. This lesson discusses Set and SortedSet. A discussion of SortedMap will be deferred for inclusion in a subsequent lesson.

Viewing tip

You may find it useful to open another copy of this lesson in a separate browser window. That will make it easier for you to scroll back and forth among the different listings while you are reading about them...

Read article at Internet.com site

Featured Local Company

IBM Corp

(757) 446-6200
999 Waterside DR
Norfolk, VA

Regional Articles
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Alexandria VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Annandale VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Arlington VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Ashburn VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Bassett VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Blacksburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Bristol VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Burke VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Centreville VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Chantilly VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Charlottesville VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Chesapeake VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Chester VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Chesterfield VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Christiansburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Colonial Heights VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Culpeper VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Danville VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Dumfries VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Fairfax Station VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Fairfax VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Falls Church VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Farmville VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Fredericksburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Front Royal VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Galax VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Glen Allen VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Hampton VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Harrisonburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Herndon VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Hopewell VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 King George VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Leesburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Lorton VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Lynchburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Manassas VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Martinsville VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Mc Lean VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Mechanicsville VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Midlothian VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Newport News VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Norfolk VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Petersburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Portsmouth VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Powhatan VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Radford VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Reston VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Richmond VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Roanoke VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Salem VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Spotsylvania VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Springfield VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Stafford VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Staunton VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Sterling VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Suffolk VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Vienna VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Vinton VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Virginia Beach VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Warrenton VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Waynesboro VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Williamsburg VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Winchester VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Woodbridge VA
- Data Structures in Java: Part 8, The Comparable Interface, Part 2 Yorktown VA

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML