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

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

Global Software
859-264-9215
501 Darby Creek RD
Lexington, KY
Business Technology Solutions
859-977-3829
1450 N Broadway
Lexington, KY
Onsite Solutions Corp
859-255-0545
271 W Short St
Lexington, KY
National Innovative Software Solutions LLC
502-495-0548
2108 Plantside DR
Louisville, KY
Information Systems Solutions Inc
502-245-7003
12730 Townepark Way
Louisville, KY
Epicor Software
502-339-7748
8700 Westport RD
Louisville, KY
Api
859-233-2006
167 W Main St
Lexington, KY
Dynamic Accounting Solutions
859-858-3598
2375 Glass Mill RD
Lexington, KY
Halo Group, Inc.
502-657-6468
9900 Corporate Campus Drive
Louisville, KY
Epicor Software Corporation
502-412-7666
9100 Shelbyville RD
Louisville, KY

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

Epicor Software

502-339-7748
8700 Westport RD
Louisville, KY

Regional Articles
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ashland KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bardstown KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bowling Green KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Campbellsville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Corbin KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Covington KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Crestwood KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cynthiana KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Elizabethtown KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Erlanger KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Florence KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Campbell KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Thomas KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Frankfort KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ft Mitchell KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Georgetown KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Glasgow KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Harrodsburg KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hazard KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Henderson KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hopkinsville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Latonia KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Leitchfield KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lexington KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 London KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Louisville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Madisonville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mayfield KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Morehead KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mount Sterling KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Murray KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Newport KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Nicholasville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Owensboro KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Paducah KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pikeville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Radcliff KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Richmond KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Scottsville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Shepherdsville KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Somerset KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Versailles KY
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Winchester KY

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