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 66
... loop body ? We could count this number , but let's just say that each execution of the loop body requires k operations , where k is some number around 3 or 4 ( including the work at the end of the loop where i is incremented and the ...
... loop will be executed exactly n times - once for each element in the bag . The body of the loop also has another important prop- erty : The body contains no other loops or calls to methods that contain loops . This is enough to conclude ...
... loop ? The answer is not easy . Many of the operations are hidden . The loop control variable , i , is com- pared to zero at the start of each loop iteration . The actual swapping uses three assignment operations , and the calculation ...
Contents
CHAPTER | 2 |
LEARNING OBJECTIVES | 14 |
Java Classes and Information Hiding | 40 |
Copyright | |
44 other sections not shown