Data Structures in Java: Part 12, The Comparator Interface, Part 4 Idaho

Baldwin shows you how to extract the contents of a collection into an array, and how to use a Comparator object to sort the contents of the array into reverse natural order. He also shows you how to sort the contents of the array into natural order without the use of a Comparator object.

Local Companies

Intelligent Employment Solutions
(208) 377-0945
7964 W Fairview Ave
Boise, ID
Capital City Computer Services
(208) 376-7471
9194 W Calico St
Boise, ID
S1 IT Solutions
(208) 381-0679
420 W Main St
Boise, ID
Employment Solutions Inc
(208) 323-0883
260 S Cole Rd
Boise, ID
Cougar Mountain Software Inc
(208) 375-4455
7180 Potomac Dr
Boise, ID
Integrinet Solutions
(208) 376-0500
10020 W Fairview Ave
Boise, ID
Blackfin Technology
(208) 338-1581
1702 W Fairview Ave
Boise, ID
Microsoft Dynamics Gp Nav Solutions Center
(208) 344-5098
7699 W Riverside Dr
Boise, ID
Aagave Solutions LLC
(208) 331-4593
202 N 9th St
Boise, ID
Analyze Soft
(208) 343-2075
3514 S Crosspoint Ave
Boise, ID

provided by: 
Originally published at Internet.com


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

Preface

A miniseries

This is the twelfth 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 11, The Comparator Interface, Part 3.

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

However, this lesson departs somewhat from that primary purpose and teaches you how to use a Comparator object to sort the contents of an array containing references to objects. Technically speaking, an array is not part of the core Collections Framework. However, it is definitely a first cousin to the Framework...

Read article at Internet.com site

Featured Local Company

Integrinet Solutions

(208) 376-0500
10020 W Fairview Ave
Boise, ID


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