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

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

Cms Software
313-965-4775
500 Griswold St
Detroit, MI
All About Technology
313-962-2430
2727 2nd Ave
Detroit, MI
L & M Office Products
313-861-5707
8514 W Mcnichols RD
Detroit, MI
Sync Technologies
313-963-5353
2727 2nd Ave
Detroit, MI
PC Menders Computer Services
313-397-2713
18256 Grand River Ave
Detroit, MI
Corporate IT Source
248-396-1573
6841 N. Rochester Rd.
Rochester Hills, MI
Protocol Syst C
313-534-8773
18201 W 8 Mile Rd
Detroit, MI
Computer Power Store
313-640-4681
15411 Mack Ave
Detroit, MI
Keane Inc
248-356-2000
3000 Northwestern St
Detroit, MI
Woodwing USA
313-962-0542
615 Griswold St
Detroit, MI

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

Corporate IT Source

248-396-1573
6841 N. Rochester Rd.
Rochester Hills, MI

Regional Articles
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Adrian MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Allegan MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Allen Park MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Alpena MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ann Arbor MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Auburn Hills MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Battle Creek MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bay City MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Belleville MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Benton Harbor MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Berkley MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Big Rapids MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bloomfield Hills MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Brighton MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Burton MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cadillac MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Canton MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cheboygan MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Clarkston MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Clinton Township MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Clio MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Coldwater MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Commerce Township MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Comstock Park MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Davison MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dearborn Heights MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dearborn MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Detroit MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Dowagiac MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 East Lansing MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Eastpointe MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Eaton Rapids MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Escanaba MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Farmington MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fenton MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ferndale MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Flat Rock MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Flint MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Flushing MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fort Gratiot MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Fraser MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Garden City MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Gaylord MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Gladwin MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Grand Blanc MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Grand Haven MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Grand Ledge MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Grand Rapids MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Grandville MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Grosse Pointe MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hamtramck MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Harper Woods MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Harrison Township MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hazel Park MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Highland Park MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hillsdale MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Holland MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Holly MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Holt MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Howell MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Hudsonville MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Inkster MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ionia MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Jackson MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Jenison MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kalamazoo MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake Orion MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lansing MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lapeer MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lincoln Park MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Livonia MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ludington MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Macomb MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Marquette MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Midland MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Monroe MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mount Clemens MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mount Morris MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mount Pleasant MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Muskegon MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 New Baltimore MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Niles MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Northville MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Novi MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Oak Park MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Okemos MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Owosso MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Petoskey MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pinckney MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Plymouth MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pontiac MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Huron MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Portage MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Redford MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Rochester MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Rockford MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Romulus MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Roseville MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Royal Oak MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saginaw MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saint Clair Shores MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saint Johns MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Saline MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sault Sainte Marie MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 South Haven MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 South Lyon MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Southfield MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Southgate MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sterling Heights MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sturgis MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Swartz Creek MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Taylor MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Temperance MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Three Rivers MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Traverse City MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Trenton MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Troy MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Utica MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Walled Lake MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Warren MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Waterford MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 West Bloomfield MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Westland MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 White Lake MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Wixom MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Wyandotte MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Wyoming MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ypsilanti MI
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Zeeland MI
Related Local Event
Real-Time & Embedded Computing Conference-Detroit (RTECC)
Dates: 9/17/2009 - 9/17/2009
Location: Sterling Inn Banquet & Conference Center, Detroit
Sterling Heights, MI
View Details

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