Appendix A

Accompanying Programs

The folder for each application contains sub-folders src and class: src holds the source code; class holds one or more compiled classes to be run by the Java interpreter.

Where an application has more than one class, the main class, which is the one to be run, is shown in brackets.

Chapter Programs
3 Counter class (Testcount)
4 File reader 1 with file text1
File reader 2 with file Furnishings
File writer
5 Two dimensioned array—sales example
6 Binary search
Linear search
String binary search
7 Hash table
8 Bubble sort
Bubble sort 2
Selection sort
Insertion sort 1, Insertion sort 2
Merge sort
Quick sort
9 Singly linked list (Listtest),
Doubly linked list (DLtest),
Circular ...

Get Introducing Data Structures with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.