Data Structures in Java: Part 14, The Comparator Interface, Part 6 Florida

Baldwin shows you how to use a Comparator created by the reverseOrder method of the Collections class to sort a list into reverse natural order. He also shows you how to use the reverse method of the Collections class to reverse the order of the elements in a list.

Local Companies

Keylogger
001-9900000000
Address1 street
Province, FL
MFG/EDP, Inc.
(305) 292-2660
1224 South St.
Key West, FL
Nextlevel Information Solutions
727-821-7444
700 Central Ave
St. Petersburg, FL
Progressive System Solutions Inc
407-523-7676
4019 Clarcona Ocoee RD
Orlando, FL
Acusoft
407-658-9888
11869 High Tech Ave
Orlando, FL
design barcode label
0019800000000
Lane
City, FL
Keylogger
001-9900000000
Address1 street
Province, FL
Office Management Solutions Inc
813-963-5582
5802 Taywood DR
Tampa, FL
Summit Software Design
727-823-1000
100 2nd Ave S
St. Petersburg, FL
Riptide Software
407-384-8818
3452 Lake Lynda Dr
Orlando, FL

provided by: 
Originally published at Internet.com


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

Preface

A miniseries

This is the fourteenth 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 13, The Comparator Interface, Part 5.

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 sixth lesson in a sub-series on the Comparator interface. The primary purpose of the lessons in this sub-series is to teach you about the interactions between the Comparator interface and the Collections Framework.

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.

Supplementary material

I recommend that you also study the other lessons in my extensive collection of online Java tutorials. You will find those lessons published at Gamelan.com. However, as of the date of this writing, Gamelan doesn't maintain a consolidated index of my Java tutorial lessons, and sometimes they are difficult to locate there. You will find a consolidated index at Baldwin's Java Programming Tutorials.

Preview

In this lesson, I will teach you how to use a Comparator created by the reverseOrder method of the Collections class to sort a list into reverse natural order. I will also teach you how to use the reverse method of the Collections class to reverse the order of the elements in a list.

Discussion and Sample Program

Beginning with a quiz ...

Read article at Internet.com site

Featured Local Company

design barcode label

0019800000000
Lane
City, FL

Regional Articles
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Altamonte Springs FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Apopka FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Arcadia FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Atlantic Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Auburndale FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Avon Park FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bartow FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Belle Glade FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Boca Raton FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bonita Springs FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Boynton Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bradenton FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Brandon FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Brooksville FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cantonment FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cape Coral FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Casselberry FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Chipley FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Clearwater FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Clermont FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Clewiston FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cocoa Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cocoa FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Crawfordville FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Crestview FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Crystal River FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dade City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dania FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Daytona Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Debary FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Deerfield Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Defuniak Springs FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Deland FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Delray Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Deltona FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Destin FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dunedin FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dunnellon FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Englewood FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Eustis FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fernandina Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Lauderdale FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Myers FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Pierce FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Walton Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Gainesville FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Green Cove Springs FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Gulf Breeze FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Haines City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hallandale FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hialeah FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hobe Sound FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Holiday FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hollywood FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Homestead FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Homosassa FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hudson FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Immokalee FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Inverness FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Jacksonville Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Jacksonville FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Jensen Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Jupiter FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Key West FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kissimmee FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Labelle FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lady Lake FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake Mary FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake Placid FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake Wales FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake Worth FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lakeland FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Land O Lakes FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Largo FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Leesburg FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lehigh Acres FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Live Oak FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Longwood FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Loxahatchee FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lutz FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lynn Haven FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Marco Island FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Marianna FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Melbourne FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Merritt Island FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Miami Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Miami FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Miami Lakes FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Middleburg FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Milton FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Miramar FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mount Dora FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mulberry FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Naples FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Navarre FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 New Port Richey FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 New Smyrna Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Niceville FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Nokomis FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 North Fort Myers FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 North Miami Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 North Palm Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 North Port FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ocala FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ocoee FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Okeechobee FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Oldsmar FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Opa Locka FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Orange City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Orange Park FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Orlando FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ormond Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Oviedo FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palatka FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palm Bay FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palm Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palm Beach Gardens FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palm City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palm Coast FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palm Harbor FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Palmetto FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Panama City Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Panama City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pembroke Pines FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pensacola FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pinellas Park FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Plant City FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pompano Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ponte Vedra Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Charlotte FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Orange FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Richey FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Saint Lucie FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Punta Gorda FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Riverview FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Rockledge FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Safety Harbor FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saint Augustine FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saint Cloud FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saint Petersburg FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sanford FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sarasota FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Satellite Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sebastian FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sebring FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Seffner FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Seminole FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Spring Hill FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Starke FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Stuart FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Summerfield FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sun City Center FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Tallahassee FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Tampa FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Tarpon Springs FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Titusville FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Valrico FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Venice FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Vero Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Wauchula FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Wesley Chapel FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 West Palm Beach FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Winter Garden FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Winter Haven FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Winter Park FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Winter Springs FL
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Zephyrhills FL
Related Local Events
Wednesday Evening Referral Group
Dates: 5/5/2010 - 5/7/2010
Location: WineStyles
Coral Springs, FL
View Details

Wake Up Coral Springs Breakfast!!
Dates: 6/15/2010 - 6/15/2010
Location: Marriott Heron Bay
Coral Springs, FL
View Details

Afternoon Chamber Referral Group
Dates: 7/1/2010 - 7/1/2010
Location: The Coral Springs Chamber Office
Coral Springs, FL
View Details

Morning Chamber Referral Group Meeting
Dates: 7/22/2010 - 7/22/2010
Location: La Quinta Hotel
Coral Springs, FL
View Details

Business Development Committee Meeting TIME CHANGED
Dates: 7/27/2010 - 7/27/2010
Location: St. Lucie County Chamber of Commerce
Port St. Lucie, FL
View Details

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