Java Software Structures: Designing and Using Data Structures
The second edition of Java Software Structures embraces the enhancements of Java 5.0, where all structures and collections are based on generics. The framework of the text walks the reader through three main areas: conceptualization, explanation, and implementation, allowing for a consistent and coherent introduction to data structures. The addition of integrated case studies provides complete examples to aid readers starting with the problem statement, to design rationale, through full implementation. Readers will learn how to develop high-quality software systems using well-designed collections and algorithms.
Results 1-3 of 52
But in a specific situation we want the collection to hold simple integer values. In
these cases we need to "wrap" a primitive type into a class so that it can be
treated as an object. A wrapper class represents a particular primitive type.
Exercises 6.1 Hand trace a stack X through the following operations: X. push (
new Integer(4)); X. push (new Integer(3)); Integer Y = X.pop(); X. push (new
Integer(7)); X. push (new Integer(2)); X. push (new Integer(5)); X. push (new
Exercises 8.1 Hand trace an ordered list X through the following operations: X.
add (new Integer(4)); X. add (new Integer(7)); Object Y = X.first( ) ; X. add (new
Integer(3)); X. add (new Integer(2)); X. add (new Integer(5)); Object Y ...
What people are saying - Write a review
17 other sections not shown