Data Structures and Other Objects Using JavaThis 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. The new edition has been updated to cover Java 1.3 and includes new appendices with more reference material on such topics as Java collections. It also features increased coverage of object-oriented programming and inheritance. New exercises on radix sort and shell sort have also been added. |
From inside the book
Results 1-3 of 47
... IntNode class : // 1. The node's integer data is in the instance variable data . // 2. For the final node of a list ... IntNode link ; public IntNode ( int initialData , IntNode initialLink ) data = { initialData ; link = initialLink ...
Michael Main. ( FIGURE 4.11 continued ) public static IntNode [ ] listPart ( IntNode start , IntNode end ) { // Notice that the return value is an array of two IntNode components . // The [ 0 ] component is the head reference for the new ...
... ( IntNode head ) { } int count = 0 ; IntNode cursor ; for ( cursor = head ; cursor ! = null ; 11 } cursor = cursor.link ; if ( cursor.data count ++ ; return count ; 19. public static boolean has42 ( IntNode head ) { IntNode cursor ; for ...
Contents
CHAPTER | 2 |
LEARNING OBJECTIVES | 14 |
Java Classes and Information Hiding | 40 |
Copyright | |
44 other sections not shown