Data Structures & Other Objects Using Java
This book takes a gentle approach to the data structures course in Java. It offers an early, self-contained review of object-oriented programming and Java to give students a firm grasp of key concepts, and allows those experienced in other languages to adjust easily. The book also offers a flexibility which allows professors such options as emphasizing object-oriented programming, covering recursion and sorting early or accelerating the pace of the course. This title meets the needs of professors searching for a book to balance the introduction of object-oriented programming and data structures with Java.
Results 1-3 of 39
A Collection Can Provide an Iterator for Its Own Elements Normally, when a
program needs to keep track of some elements, it puts the elements into a bag or
some other collection, rather than building a linked list in a haphazard manner.
We'll also implement the new iterator method, which needs only one line to
construct a Li ster that contains all the elements. Here's the implementation:
public Lister iterator( ) // Method of the LinkedBag class to return a Lister that //
contains all ...
Also, the new bag has an iterator method to return a Lister. 15. The bag from this
section stores its elements on a linked list rather than in an array. Also, the new
bag has an iterator method to return a Lister. 16. import java.util .Iterator; public ...
What people are saying - Write a review
The Phases of Software Development
Abstract Data Types and Java Classes
27 other sections not shown