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 37
Postcondition: This bag's capacity has been changed to its current size. Throws:
OutOfMemoryError Indicates insufficient memory for altering the capacity. » union
public static IntArrayBag union(IntArrayBag b1, IntArrayBag b2) Create a new ...
This method ensures that a bag's array has at least a certain minimum length.
Here is the method's heading: public void ensureCapacity(int minimumCapacity)
The method checks whether the bag's array has a length below minimum-
For our bag, we'll allow the null reference to be placed in the bag, and we'll
indicate this in the documentation. Some of the bag's methods will need special
cases to deal with null references. For example, countOccurrences will search for
What people are saying - Write a review
The Phases of Software Development
Abstract Data Types and Java Classes
27 other sections not shown