Data Structures in Java: Part 11, The Comparator Interface, Part 3 New York

Baldwin shows you how to use a Comparator to cause a TreeSet collection to be sorted in descending order while preserving the impact of differences in case.

Local Companies

recover deleted file
001-9800000000
Building
City, NY
DVD Copy Software
contact via email
DVD Copy Software
New York, NY
recover data
001-9800000000
Co-Lane
City, NY
American Micro, Inc.
(716) 861-1412
1659 North Forest Rd.
Buffalo, NY
IT HealthTrack, Inc.
(716) 630-0063
6500 Main St., Ste. 3
Williamsville, NY
CompareTechProviders.com
518-207-3445
5 Washington Place
Troy, NY
Roth Controls
(585) 872-0220
841 Holt Rd
Rochester, NY
huangjie
(010) 564-2835
The northern&shel building eighth floor 10 lower street london
NewYork, NY
XLSTAT
(646) 399 0974
28 West 27th Street, Suite 503
New York, NY
Software Solutions Group
(716) 568-2040
6465 Transit Rd.
East Amherst, NY

provided by: 
Originally published at Internet.com


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

Preface

A miniseries

This is the eleventh 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 10, The Comparator Interface, Part 2.

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

A sub-series

This is also the third lesson in a sub-series on the Comparator interface. The purpose of the lessons in this sub-series is to teach you about the interactions between the Comparator 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

CompareTechProviders.com

518-207-3445
5 Washington Place
Troy, NY
http://CompareTechProviders.com

Review and compare providers of business essential software solutions. Request information, pricing and demos from multiple providers. Make the right choice for your business.

Regional Articles
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Albany NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Amityville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Amsterdam NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Arverne NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Astoria NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Auburn NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Babylon NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Baldwin NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Baldwinsville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ballston Spa NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bay Shore NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bayside NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Beacon NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bellerose NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bellmore NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bethpage NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Binghamton NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Brentwood NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Brewster NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Brockport NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bronx NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Bronxville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Brooklyn NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Buffalo NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Cambria Heights NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Camillus NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Canandaigua NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Centereach NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Central Islip NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Clifton Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Cohoes NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 College Point NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Commack NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Copiague NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Coram NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Corning NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Corona NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Cortland NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Cortlandt Manor NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Deer Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Delmar NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Depew NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Dunkirk NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Amherst NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Aurora NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Elmhurst NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Islip NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Meadow NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Northport NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Setauket NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 East Syracuse NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Elmhurst NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Elmira NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Elmont NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Endicott NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Fairport NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Far Rockaway NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Farmingdale NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Farmingville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Floral Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Flushing NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Forest Hills NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Franklin Square NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Fredonia NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Freeport NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Fresh Meadows NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Fulton NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Garden City NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Glen Cove NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Glen Oaks NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Glens Falls NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Gloversville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Great Neck NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hamburg NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hauppauge NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hempstead NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hicksville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hilton NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Holbrook NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hollis NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Hopewell Junction NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Horseheads NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Howard Beach NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Huntington NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Huntington Station NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Islip NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ithaca NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Jackson Heights NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Jamaica NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Jamestown NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Kew Gardens NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Kings Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Kingston NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Lancaster NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Larchmont NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Latham NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Levittown NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Lindenhurst NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Little Neck NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Liverpool NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Lockport NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Long Beach NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Long Island City NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Lynbrook NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Mahopac NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Malone NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Mamaroneck NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Manhasset NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Manhattan NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Manlius NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Maspeth NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Massapequa NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Massapequa Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Massena NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Mastic NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Melville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Merrick NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Middle Village NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Middletown NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Mineola NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Monroe NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Monsey NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Mount Kisco NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Mount Vernon NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Nanuet NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New City NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New Hartford NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New Hyde Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New Paltz NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New Rochelle NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New Windsor NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 New York NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Newburgh NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Niagara Falls NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 North Babylon NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 North Tonawanda NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Nyack NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Oakland Gardens NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Oceanside NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ogdensburg NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Olean NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Oneonta NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Orchard Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ossining NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Oswego NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ozone Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Patchogue NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Pearl River NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Peekskill NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Penfield NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Pittsford NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Plainview NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Plattsburgh NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Port Chester NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Port Jefferson Station NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Port Washington NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Potsdam NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Poughkeepsie NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Queens Village NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Queensbury NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rego Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rensselaer NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Richmond Hill NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ridgewood NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Riverhead NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rochester NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rockaway Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rockville Centre NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rome NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Ronkonkoma NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Roosevelt NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rosedale NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Rye NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Saint Albans NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Saint James NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Saratoga Springs NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Saugerties NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Sayville NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Scarsdale NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Schenectady NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Selden NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Shirley NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Smithtown NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 South Ozone Park NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 South Richmond Hill NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Spencerport NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Spring Valley NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Springfield Gardens NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Staten Island NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Stony Brook NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Suffern NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Sunnyside NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Syosset NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Syracuse NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Tarrytown NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Tonawanda NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Troy NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Uniondale NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Utica NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Valley Stream NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Vestal NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Wantagh NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Wappingers Falls NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Watertown NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Watervliet NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Webster NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 West Babylon NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 West Hempstead NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 West Islip NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Westbury NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 White Plains NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Whitestone NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Woodhaven NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Woodside NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Wyandanch NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Yonkers NY
- Data Structures in Java: Part 11, The Comparator Interface, Part 3 Yorktown Heights NY
Related Local Events
Early Technologies Day
Dates: 4/10/2010 - 4/10/2010
Location: Iroquois Indian Museum
Howes Cave, NY
View Details

Biotechnica America
Dates: 4/20/2010 - 4/22/2010
Location: Jacob K. Javits Convention Center
New York, NY
View Details

10th Annual SmartStart UNYTECH Venture Forum
Dates: 5/17/2010 - 5/18/2010
Location: Center for Economic Growth
Albany, NY
View Details

TradeTech USA
Dates: 3/1/2010 - 3/3/2010
Location: Marriott Marquis New York
New York, NY
View Details

BIO CEO & INVESTOR CONFERENCE 2010
Dates: 2/8/2010 - 2/8/2010
Location: Waldorf-Astoria
New York, NY
View Details

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