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

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

Free Data Recovery Software
001-991-1111 x111
lane
State, WA
Benaroya Research Institute at Virginia Mason
(206) 341-1313
1201 9th Ave.
Seattle, WA
Dendreon Corporation
(206) 256-4545
3005 1st Ave.
Seattle, WA
Advanced Computer Solutions Ltd.
(206) 624-7854
500 Union St.,
Seattle, WA
Envision Telephony, Inc.
(206) 621-9384
520 Pike St.,
Seattle, WA
ClearStar.net
360-892-0687
915 Broadway
Vancouver, WA
Advanced Clinical Software
206-728-0313
2212 4th Ave
Seattle, WA
BioLife Solutions, Inc.
(425) 402-1400
3303 Monte Villa Pkwy, Ste. 310
Seattle, WA
IMAGINiT Technologies, Inc.
(206) 682-8032
2101 4th Ave.,
Seattle, WA
Coolearth Technologies, Inc.
(206) 770-9061
226 S Orcas St.
Seattle, WA

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

ClearStar.net

360-892-0687
915 Broadway
Vancouver, WA
http://www.clearstar.net

Regional Articles
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Anacortes WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Arlington WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Auburn WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bainbridge Island WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Battle Ground WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bellevue WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bellingham WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bothell WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Bremerton WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Buckley WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Camas WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Chehalis WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Cheney WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 East Wenatchee WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Edmonds WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Ellensburg WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Enumclaw WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Everett WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Federal Way WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Gig Harbor WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Issaquah WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kelso WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kenmore WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kennewick WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kent WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Kirkland WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lacey WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lake Stevens WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lakewood WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Longview WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lynden WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Lynnwood WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Maple Valley WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Marysville WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mercer Island WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Moses Lake WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mount Vernon WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mountlake Terrace WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Mukilteo WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Oak Harbor WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Olympia WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pasco WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Angeles WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Port Orchard WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Poulsbo WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Pullman WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Puyallup WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Redmond WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Renton WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Richland WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Seattle WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sedro Woolley WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Selah WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sequim WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Shelton WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Silverdale WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Snohomish WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Spanaway WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Spokane WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Stanwood WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Sumner WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Tacoma WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 University Place WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Vancouver WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Washougal WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Wenatchee WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Woodinville WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Yakima WA
- Data Structures in Java: Part 14, The Comparator Interface, Part 6 Yelm WA
Related Local Events
Intellectual Property: Commercialization & Protection
Dates: 2/17/2010 - 2/17/2010
Location: AHA!
Vancouver, WA
View Details

2010 'The Future is Now' Technology Expo
Dates: 1/27/2010 - 1/27/2010
Location: ShoWare Center
Kent, WA
View Details

Leads Group: Wired
Dates: 12/31/2009 - 12/31/2009
Location: Mud Bay Coffee
Olympia, WA
View Details

Leads Group: Wired
Dates: 12/24/2009 - 12/24/2009
Location: Mud Bay Coffee
Olympia, WA
View Details

Leads Group: Wired
Dates: 12/13/2009 - 12/13/2009
Location: Mud Bay Coffee
Olympia, WA
View Details

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